aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)