From 6807bc078fbe831c476548c3d720051240ccebf1 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 17 Oct 2007 03:39:50 +0000 Subject: [PATCH] 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 --- ath/if_athvar.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ath/if_athvar.h b/ath/if_athvar.h index a548461..1300dc9 100644 --- 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 +#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