Fix compilation with GCC 4.1.2 on 64-bit hosts
[madwifi/.git] / ath / if_athvar.h
index a54846137f6c4c969d50d24778698400f742b1f7..1300dc9d83295f072b9ce24defc5f1968bdd3d0b 100644 (file)
@@ -104,9 +104,13 @@ typedef void irqreturn_t;
 #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)
+#else
+#define SET_MODULE_OWNER(dev) do { } while (0)
+#endif
 #endif
 
 #ifndef SET_NETDEV_DEV