projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Linux 2.6.24 moves proc_net inside init_net
[madwifi/.git]
/
ath
/
if_athvar.h
diff --git
a/ath/if_athvar.h
b/ath/if_athvar.h
index a54846137f6c4c969d50d24778698400f742b1f7..1300dc9d83295f072b9ce24defc5f1968bdd3d0b 100644
(file)
--- a/
ath/if_athvar.h
+++ b/
ath/if_athvar.h
@@
-104,9
+104,13
@@
typedef void irqreturn_t;
#endif /* !defined(IRQ_NONE) */
#ifndef SET_MODULE_OWNER
#endif /* !defined(IRQ_NONE) */
#ifndef SET_MODULE_OWNER
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
#define SET_MODULE_OWNER(dev) do { \
dev->owner = THIS_MODULE; \
} while (0)
#define SET_MODULE_OWNER(dev) do { \
dev->owner = THIS_MODULE; \
} while (0)
+#else
+#define SET_MODULE_OWNER(dev) do { } while (0)
+#endif
#endif
#ifndef SET_NETDEV_DEV
#endif
#ifndef SET_NETDEV_DEV