Skip to contentSkip to conversation

ARM: footbridge: remove redundant checks for CONFIG_NEW_LEDS

PATCH New Ethan Nelson-Moore 1 participant 1 message May 20

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index a65554b1c1d8..2e23c35a4f28 100644
@@ -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
index a33f4c3b9505..14989d557ebf 100644
@@ -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