projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6bae24
)
patch from Ian Abbott <abbotti@mev.co.uk>:
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 3 Mar 2005 23:08:59 +0000
(23:08 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 3 Mar 2005 23:08:59 +0000
(23:08 +0000)
adds two more compatibility
definitions for 'pci_dev_get()' and 'pci_get_device()'
include/linux/pci.h
patch
|
blob
|
history
diff --git
a/include/linux/pci.h
b/include/linux/pci.h
index 828a0469547bf89e0cf87783d99b016cf95c01e7..e295c534fbd166d24fb1e816473637cf5d2b56fc 100644
(file)
--- a/
include/linux/pci.h
+++ b/
include/linux/pci.h
@@
-183,7
+183,9
@@
static inline unsigned long pci_resource_len (struct pci_dev *dev, int n_base)
#endif // 2.2.18
#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