diff options
author | Werner Almesberger <werner@openmoko.org> | 2009-03-31 04:47:06 -0300 |
---|---|---|
committer | Werner Almesberger <werner@openmoko.org> | 2009-03-31 04:50:02 -0300 |
commit | 34152a920a7e529ba65ded0a8024492026e68356 (patch) | |
tree | 55c48f8c725e4ac3136a6bff3c9c4fc3638b8cf8 /drivers/ar6000 | |
parent | 3b770a4056e1c5ff907fdc50e6ea04e3a1499483 (diff) |
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 <werner@openmoko.org>
Reported-by: Ivan Petrov <ivan_p@hotbox.ru>
Diffstat (limited to 'drivers/ar6000')
-rw-r--r-- | drivers/ar6000/hif/hif2.c | 17 |
1 files changed, 16 insertions, 1 deletions
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 <linux/mmc/sdio_func.h> #include <linux/mmc/sdio.h> #include <linux/mmc/sdio_ids.h> -#include <mach/gta02-pm-wlan.h> #include "athdefs.h" #include "a_types.h" #include "hif.h" +/* @@@ Hack - this wants cleaning up */ + +#ifdef CONFIG_MACH_NEO1973_GTA02 + +#include <mach/gta02-pm-wlan.h> + +#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: * |