hotplug.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. diff -urN diethotplug-0.4.orig/pci.c diethotplug-0.4/pci.c
  2. --- diethotplug-0.4.orig/pci.c Wed Jan 9 13:57:29 2002
  3. +++ diethotplug-0.4/pci.c Wed Jan 30 22:35:24 2002
  4. @@ -68,8 +68,8 @@
  5. }
  6. /* check that the class matches */
  7. - class_temp = pci_module_map[i].class_mask & pci_class;
  8. - if (pci_module_map[i].class != class_temp) {
  9. + class_temp = (pci_module_map[i].class ^ pci_class) & pci_module_map[i].class_mask;
  10. + if (class_temp != 0) {
  11. dbg ("class mask check failed %x != %x",
  12. pci_module_map[i].class, class_temp);
  13. continue;
  14. --- diethotplug-0.4/Makefile.orig Wed Jan 9 14:28:05 2002
  15. +++ diethotplug-0.4/Makefile Mon Jul 8 07:29:00 2002
  16. @@ -135,13 +135,13 @@
  17. # Rules on how to create the generated header files
  18. usb_modules.h:
  19. - perl convert_usb.pl < /lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
  20. + perl convert_usb.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
  21. pci_modules.h:
  22. - perl convert_pci.pl < /lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
  23. + perl convert_pci.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
  24. ieee1394_modules.h:
  25. - perl convert_ieee1394.pl < /lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
  26. + perl convert_ieee1394.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
  27. hotplug_version.h:
  28. @echo \#define HOTPLUG_VERSION \"$(VERSION)\" > $@