patch-src_cir_driver_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- xf86-video-cirrus-1.4.0.orig/src/cir_driver.c 2012-03-24 02:48:17.000000000 +0100
  2. +++ xf86-video-cirrus-1.4.0/src/cir_driver.c 2013-11-14 14:22:54.000000000 +0100
  3. @@ -206,25 +206,6 @@ CIRProbe(DriverPtr drv, int flags)
  4. ErrorF("CirProbe\n");
  5. #endif
  6. - /*
  7. - * For PROBE_DETECT, make sure both sub-modules are loaded before
  8. - * calling xf86MatchPciInstances(), because the AvailableOptions()
  9. - * functions may be called before xf86MatchPciInstances() returns.
  10. - */
  11. -
  12. - if (flags & PROBE_DETECT) {
  13. - if (!lg_loaded) {
  14. - if (xf86LoadDrvSubModule(drv, "cirrus_laguna")) {
  15. - lg_loaded = TRUE;
  16. - }
  17. - }
  18. - if (!alp_loaded) {
  19. - if (xf86LoadDrvSubModule(drv, "cirrus_alpine")) {
  20. - alp_loaded = TRUE;
  21. - }
  22. - }
  23. - }
  24. -
  25. if ((numDevSections = xf86MatchDevice(CIR_DRIVER_NAME,
  26. &devSections)) <= 0) {
  27. return FALSE;
  28. @@ -261,19 +242,8 @@ CIRProbe(DriverPtr drv, int flags)
  29. PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_GD5464 ||
  30. PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_GD5464BD ||
  31. PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_GD5465)) {
  32. -
  33. - if (!lg_loaded) {
  34. - if (!xf86LoadDrvSubModule(drv, "cirrus_laguna"))
  35. - continue;
  36. - lg_loaded = TRUE;
  37. - }
  38. pScrn = LgProbe(usedChips[i]);
  39. } else {
  40. - if (!alp_loaded) {
  41. - if (!xf86LoadDrvSubModule(drv, "cirrus_alpine"))
  42. - continue;
  43. - alp_loaded = TRUE;
  44. - }
  45. pScrn = AlpProbe(usedChips[i]);
  46. }