[PATCH] media_build: add module_pci_driver to compat.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch corrects this warnings on a Ubuntu 10.04 system with kernel 2.6.32-43:

bt87x.c:972: warning: data definition has no type or storage class
bt87x.c:972: warning: type defaults to 'int' in declaration of 'module_pci_driver'
bt87x.c:972: warning: parameter names (without types) in function declaration
bt87x.c:965: warning: 'bt87x_driver' defined but not used
core.c:321: warning: data definition has no type or storage class
core.c:321: warning: type defaults to 'int' in declaration of 'module_pci_driver'
core.c:321: warning: parameter names (without types) in function declaration
core.c:314: warning: 'solo_pci_driver' defined but not used

Signed-off-by: Gianluca Gennari <gennarone@xxxxxxxxx>
---
 v4l/compat.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/v4l/compat.h b/v4l/compat.h
index fdc6d4a..8d5c13a 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1064,4 +1064,10 @@ static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd)
 #define printk_ratelimited printk
 #endif
 
+#ifndef module_pci_driver
+#define module_pci_driver(__pci_driver) \
+       module_driver(__pci_driver, pci_register_driver, \
+                       pci_unregister_driver)
+#endif
+
 #endif /*  _COMPAT_H */
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux