From 43424eeaa807bf1cc78524e850d113bffab6ac68 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 5 Sep 2001 23:39:46 +0000 Subject: [PATCH] Added compat code for MODULE_DEVICE_TABLE() --- include/linux/module.h | 4 ++++ include/linux/pci.h | 9 +++++++++ 2 files changed, 13 insertions(+) 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 -- 2.26.2