* [PATCH] arm: mach-kirkwood: leds on eSATA SheevaPlug regression
@ 2011-04-19 16:41 Sean Young
0 siblings, 0 replies; only message in thread
From: Sean Young @ 2011-04-19 16:41 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: Robin Becker, Peter Korsgaard, linux-kernel
Fix regression in 2.6.39-rc2 on eSATA SheevaPlug where the leds are no
longer probed correctly.
[ 6.188278] leds-gpio: probe of leds-gpio failed with error -22
Also add missing blue led which was incorrectly wired to the green led.
Tested on both SheevaPlug models (original and eSATA).
Signed-off-by: Robin Becker <robin@reportlab.com>
Signed-off-by: Sean Young <sean@mess.org>
---
diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c
index 17de0bf..e6b864a 100644
--- a/arch/arm/mach-kirkwood/sheevaplug-setup.c
+++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c
@@ -65,6 +65,12 @@ static struct gpio_led sheevaplug_led_pins[] = {
},
{
.name = "plug:green:health",
+ .default_trigger = "none",
+ .gpio = 48,
+ .active_low = 1,
+ },
+ {
+ .name = "plug:blue:health",
.default_trigger = "default-on",
.gpio = 49,
.active_low = 1,
@@ -87,15 +93,18 @@ static struct platform_device sheevaplug_leds = {
static unsigned int sheevaplug_mpp_config[] __initdata = {
MPP29_GPIO, /* USB Power Enable */
MPP46_GPIO, /* LED Red */
- MPP49_GPIO, /* LED */
+ MPP48_GPIO, /* LED Green */
+ MPP49_GPIO, /* LED Blue */
0
};
static unsigned int sheeva_esata_mpp_config[] __initdata = {
MPP29_GPIO, /* USB Power Enable */
MPP44_GPIO, /* SD Write Protect */
+ MPP46_GPIO, /* LED Red */
MPP47_GPIO, /* SD Card Detect */
- MPP49_GPIO, /* LED Green */
+ MPP48_GPIO, /* LED Green */
+ MPP49_GPIO, /* LED Blue */
0
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-19 16:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 16:41 [PATCH] arm: mach-kirkwood: leds on eSATA SheevaPlug regression Sean Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®