aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2011-06-27 11:57:10 +0100
committerLee Jones <lee.jones@linaro.org>2011-08-24 18:09:22 +0100
commit0fb6c7f4006d7b1a6541362b9f7ff1a3fcbf7a1a (patch)
tree7f7b1cfc49332e2b91f64e8d82eee70fca02ba2c
parent29277c868b76c685fb8e7590921e9b53f01c9b15 (diff)
downloadlinux-2.6.38-lt-ux500-0fb6c7f4006d7b1a6541362b9f7ff1a3fcbf7a1a.tar.gz
DELTA: LINARO: Fix 'ab8500_accdet_pdata undeclared' build error
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--arch/arm/mach-ux500/board-mop500.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index d9890967523..6e0ede8e10b 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -904,10 +904,12 @@ static struct platform_device *snowball_platform_devs[] __initdata = {
*/
static void accessory_detect_config(void)
{
+#ifdef CONFIG_INPUT_AB8500_ACCDET
if (machine_is_hrefv60())
ab8500_accdet_pdata.is_detection_inverted = true;
else
ab8500_accdet_pdata.is_detection_inverted = false;
+#endif
}
static void __init mop500_init_machine(void)