]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: comedi: remove PCI wrappers
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Nov 2008 01:20:22 +0000 (17:20 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:23 +0000 (13:52 -0800)
The PCI wrapper macros are no longer needed, as they are
all for compatiblity with older kernel versions.

Cc: Anders Blomdell <anders.blomdell@control.lth.se>
Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/mite.h
drivers/staging/comedi/pci.h [deleted file]

index 90a656b5c5b7392151d727b1ef48e5e02e6b00ce..b84eafa6ff2b6654d5ffa507e46bd93487953f72 100644 (file)
@@ -24,8 +24,8 @@
 #ifndef _MITE_H_
 #define _MITE_H_
 
+#include <linux/pci.h>
 #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 (file)
index 962e434..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * linux/pci.h compatibility header
- */
-
-#ifndef _COMPAT_PCI_H
-#define _COMPAT_PCI_H
-
-#include <linux/version.h>
-
-#include <linux/pci.h>
-
-#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 */