From: David Schleef Date: Wed, 5 Sep 2001 23:39:46 +0000 (+0000) Subject: Added compat code for MODULE_DEVICE_TABLE() X-Git-Tag: r0_7_61~114 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43424eeaa807bf1cc78524e850d113bffab6ac68;p=comedi.git Added compat code for MODULE_DEVICE_TABLE() --- diff --git a/include/linux/module.h b/include/linux/module.h index 979b365a..749207c6 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -33,6 +33,10 @@ #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) +#define MODULE_DEVICE_TABLE(a,b) +#endif + #include_next #endif /* _COMPAT_MODULE_H */ diff --git a/include/linux/pci.h b/include/linux/pci.h index d5a4e319..233fccd6 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -22,6 +22,15 @@ #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