mac80211: update to wireless-testing 2012-05-29
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 060-compat_add_module_pci_driver.patch
1 --- a/include/linux/compat-3.4.h
2 +++ b/include/linux/compat-3.4.h
3 @@ -77,6 +77,19 @@ static inline void eth_hw_addr_random(st
4 module_driver(__pci_driver, pci_register_driver, \
5 pci_unregister_driver)
6
7 +/* source include/linux/pci.h */
8 +/**
9 + * module_pci_driver() - Helper macro for registering a PCI driver
10 + * @__pci_driver: pci_driver struct
11 + *
12 + * Helper macro for PCI drivers which do not do anything special in module
13 + * init/exit. This eliminates a lot of boilerplate. Each module may only
14 + * use this macro once, and calling it replaces module_init() and module_exit()
15 + */
16 +#define module_pci_driver(__pci_driver) \
17 + module_driver(__pci_driver, pci_register_driver, \
18 + pci_unregister_driver)
19 +
20 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) */
21
22 #endif /* LINUX_5_4_COMPAT_H */