diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-04-30 12:05:28 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-10-04 04:20:05 -0400 |
commit | 30bda0ebef512af996a079977488ea52a0ff1646 (patch) | |
tree | 7a66a9fbabf2122d54b15494db444bf27cc5ab70 /arch/arm/mach-pxa/palmte2.c | |
parent | 5f0cc6d16c0572bf5e9e65b6133ac415268c0720 (diff) |
ARM: pxa: define palmte2_pxa_keys conditionally
Gcc prints a harmless warning about palmte2_pxa_keys not being used
when the gpio keyboard driver is disabled. The solution is to use
the same #ifdef that is already present in the place where the
symbol is used.
Without this patch, building palmz72_defconfig results in:
/home/arnd/linux-arm/arch/arm/mach-pxa/palmte2.c:128:31: warning: 'palmte2_pxa_keys' defined but not used [-Wunused-variable]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Carlos Eduardo Medaglia Dyonisio <cadu@nerdfeliz.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmte2.c')
-rw-r--r-- | arch/arm/mach-pxa/palmte2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index c054827c567f..8497b28825e5 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -105,6 +105,7 @@ static struct pxamci_platform_data palmte2_mci_platform_data = { | |||
105 | .gpio_power = GPIO_NR_PALMTE2_SD_POWER, | 105 | .gpio_power = GPIO_NR_PALMTE2_SD_POWER, |
106 | }; | 106 | }; |
107 | 107 | ||
108 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
108 | /****************************************************************************** | 109 | /****************************************************************************** |
109 | * GPIO keys | 110 | * GPIO keys |
110 | ******************************************************************************/ | 111 | ******************************************************************************/ |
@@ -132,6 +133,7 @@ static struct platform_device palmte2_pxa_keys = { | |||
132 | .platform_data = &palmte2_pxa_keys_data, | 133 | .platform_data = &palmte2_pxa_keys_data, |
133 | }, | 134 | }, |
134 | }; | 135 | }; |
136 | #endif | ||
135 | 137 | ||
136 | /****************************************************************************** | 138 | /****************************************************************************** |
137 | * Backlight | 139 | * Backlight |