diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 3e380863288..0c614276fe9 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -712,7 +712,6 @@ static struct led_pwm pwm_leds_data[] = { .lth_brightness = 90, .pwm_period_ns = 1023, }, -#ifdef CONFIG_DISPLAY_GENERIC_DSI_SECONDARY [1] = { .name = "sec-lcd-backlight", .pwm_id = 2, @@ -720,15 +719,10 @@ static struct led_pwm pwm_leds_data[] = { .lth_brightness = 90, .pwm_period_ns = 1023, }, -#endif }; static struct led_pwm_platform_data u8500_leds_data = { -#ifdef CONFIG_DISPLAY_GENERIC_DSI_SECONDARY - .num_leds = 2, -#else .num_leds = 1, -#endif .leds = pwm_leds_data, }; @@ -1170,6 +1164,8 @@ static void __init mop500_init_machine(void) hsi_register_board_info(u8500_hsi_devices, ARRAY_SIZE(u8500_hsi_devices)); #endif + if (uib_is_stuib()) + u8500_leds_data.num_leds = 2; if (machine_is_snowball()) { platform_add_devices(snowball_platform_devs, |