[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110419164157.GA7373@pequod.mess.org>
Date: Tue, 19 Apr 2011 17:41:57 +0100
From: Sean Young <sean@...s.org>
To: Nicolas Pitre <nico@...xnic.net>
Cc: Robin Becker <robin@...ortlab.com>,
Peter Korsgaard <jacmet@...site.dk>,
linux-kernel@...r.kernel.org
Subject: [PATCH] arm: mach-kirkwood: leds on eSATA SheevaPlug regression
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@...ortlab.com>
Signed-off-by: Sean Young <sean@...s.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
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists