mirror of https://github.com/proski/madwifi
Fix compilation for the forthcoming Linux 2.6.24
SET_MODULE_OWNER() is not defined in 2.6.24, but it's already a no-op in 2.6.23. Make sure that it will be a no-op in 2.6.23 and newer kernels. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2754 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
ab34867986
commit
6807bc078f
|
@ -104,9 +104,13 @@ typedef void irqreturn_t;
|
||||||
#endif /* !defined(IRQ_NONE) */
|
#endif /* !defined(IRQ_NONE) */
|
||||||
|
|
||||||
#ifndef SET_MODULE_OWNER
|
#ifndef SET_MODULE_OWNER
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
|
||||||
#define SET_MODULE_OWNER(dev) do { \
|
#define SET_MODULE_OWNER(dev) do { \
|
||||||
dev->owner = THIS_MODULE; \
|
dev->owner = THIS_MODULE; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#else
|
||||||
|
#define SET_MODULE_OWNER(dev) do { } while (0)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SET_NETDEV_DEV
|
#ifndef SET_NETDEV_DEV
|
||||||
|
|
Loading…
Reference in New Issue