From 34152a920a7e529ba65ded0a8024492026e68356 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 31 Mar 2009 04:47:06 -0300 Subject: AR6000: support GTA02-specific rfkill only if building for GTA02 This is loosely based on a patch by Ivan Petrov. Signed-off-by: Werner Almesberger Reported-by: Ivan Petrov --- drivers/ar6000/hif/hif2.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'drivers/ar6000') diff --git a/drivers/ar6000/hif/hif2.c b/drivers/ar6000/hif/hif2.c index 56981af8b96..386d96e668f 100644 --- a/drivers/ar6000/hif/hif2.c +++ b/drivers/ar6000/hif/hif2.c @@ -26,13 +26,28 @@ #include #include #include -#include #include "athdefs.h" #include "a_types.h" #include "hif.h" +/* @@@ Hack - this wants cleaning up */ + +#ifdef CONFIG_MACH_NEO1973_GTA02 + +#include + +#else /* CONFIG_MACH_NEO1973_GTA02 */ + +#define gta02_wlan_query_rfkill_lock() 1 +#define gta02_wlan_set_rfkill_cb(cb, hif) ((void) cb) +#define gta02_wlan_query_rfkill_unlock() +#define gta02_wlan_clear_rfkill_cb() + +#endif /* !CONFIG_MACH_NEO1973_GTA02 */ + + /* * KNOWN BUGS: * -- cgit v1.2.3