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
7 /* check that the class matches */
8 - class_temp = pci_module_map[i].class_mask & pci_class;
9 - if (pci_module_map[i].class != class_temp) {
10 + class_temp = (pci_module_map[i].class ^ pci_class) & pci_module_map[i].class_mask;
11 + if (class_temp != 0) {
12 dbg ("class mask check failed %x != %x",
13 pci_module_map[i].class, class_temp);
15 --- diethotplug-0.4/Makefile.orig Wed Jan 9 14:28:05 2002
16 +++ diethotplug-0.4/Makefile Mon Jul 8 07:29:00 2002
19 # Rules on how to create the generated header files
21 - perl convert_usb.pl < /lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
22 + perl convert_usb.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
25 - perl convert_pci.pl < /lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
26 + perl convert_pci.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
29 - perl convert_ieee1394.pl < /lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
30 + perl convert_ieee1394.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
33 @echo \#define HOTPLUG_VERSION \"$(VERSION)\" > $@