Added compat code for MODULE_DEVICE_TABLE()
authorDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:39:46 +0000 (23:39 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:39:46 +0000 (23:39 +0000)
include/linux/module.h
include/linux/pci.h

index 979b365a892255b17137576704cdf2853fd0e958..749207c6c09c403cef85282a46b384bbc09e770d 100644 (file)
 #endif
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
+#define MODULE_DEVICE_TABLE(a,b)
+#endif
+
 #include_next <linux/module.h>
 
 #endif /* _COMPAT_MODULE_H */
index d5a4e3191c1d4af509c675651bd0407bdad3f2ed..233fccd658b4036bd004a1c569dfed45f18797ec 100644 (file)
 
 #define pci_enable_device(x) 0
 
+#define PCI_ANY_ID (~0)
+
+struct pci_device_id {
+       unsigned int vendor, device;
+       unsigned int subvendor, subdevice;
+       unsigned int class, class_mask;
+       unsigned long driver_data;
+};
+
 #else
 
 #endif