ARM: footbridge: remove redundant checks for CONFIG_NEW_LEDS
Subsystems (3)
PATCH 1/1 ARM: footbridge: remove redundant checks for CONFIG_NEW_LEDS
Code in mach-footbridge checks for both CONFIG_NEW_LEDS and CONFIG_LEDS_CLASS. CONFIG_LEDS_CLASS depends on CONFIG_NEW_LEDS, and therefore checking for both is unnecessary. Remove the checks for CONFIG_NEW_LEDS.
Signed-off-by Ethan Nelson-Moore <[email protected]>
--- arch/arm/mach-footbridge/ebsa285.c | 2 +- arch/arm/mach-footbridge/netwinder-hw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-footbridge/ebsa285.c +1 -1
@@ -19,7 +19,7 @@#include "common.h" /* LEDs */ -#if defined(CONFIG_NEW_LEDS ) && defined(CONFIG_LEDS_CLASS ) +#ifdef CONFIG_LEDS_CLASS #define XBUS_AMBER_L BIT(0)#define XBUS_GREEN_L BIT(1)#define XBUS_RED_L BIT(2)
arch/arm/mach-footbridge/netwinder-hw.c +1 -1
@@ -701,7 +701,7 @@ static void netwinder_restart(enum reboot_mode mode, const char *cmd) }/* LEDs */ -#if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS) +#ifdef CONFIG_LEDS_CLASS struct netwinder_led { struct led_classdev cdev; u8 mask;
Signature · 1 line
2.43.0