From 6fd15040a6550c32e8db04cbb00b8b7703801b65 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 18 Nov 2008 17:20:22 -0800 Subject: [PATCH] Staging: comedi: remove PCI wrappers The PCI wrapper macros are no longer needed, as they are all for compatiblity with older kernel versions. Cc: Anders Blomdell Cc: David Schleef Cc: Frank Mori Hess Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.h | 2 +- drivers/staging/comedi/pci.h | 31 --------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 drivers/staging/comedi/pci.h diff --git a/drivers/staging/comedi/drivers/mite.h b/drivers/staging/comedi/drivers/mite.h index 90a656b5c5b..b84eafa6ff2 100644 --- a/drivers/staging/comedi/drivers/mite.h +++ b/drivers/staging/comedi/drivers/mite.h @@ -24,8 +24,8 @@ #ifndef _MITE_H_ #define _MITE_H_ +#include #include "../comedidev.h" -#include "../pci.h" #define PCI_VENDOR_ID_NATINST 0x1093 diff --git a/drivers/staging/comedi/pci.h b/drivers/staging/comedi/pci.h deleted file mode 100644 index 962e4348ac2..00000000000 --- a/drivers/staging/comedi/pci.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * linux/pci.h compatibility header - */ - -#ifndef _COMPAT_PCI_H -#define _COMPAT_PCI_H - -#include - -#include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) -#define pci_get_device pci_find_device -#define pci_get_subsys pci_find_subsys -#define pci_dev_get(x) (x) -#define pci_dev_put(x) -#endif - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,22) -static inline char *pci_name(struct pci_dev *pdev) -{ - return pdev->slot_name; -} -#endif - -#ifndef DEFINE_PCI_DEVICE_TABLE -#define DEFINE_PCI_DEVICE_TABLE(_table) \ - struct pci_device_id _table[] -#endif - -#endif /* _COMPAT_PCI_H */ -- 2.41.1