lkml.org 
[lkml]   [2011]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 16 Apr 2011 23:08:42 +0100
FromSean Young <>
Subjectarm: mach-kirkwood: Make the red led available on the eSATA SheevaPlug
After this patch:

7780c80 arm: mach-kirkwood: add led in sheevaplug-setup.c

On a eSATA SheevaPlug, neither the red nor the green led can be controlled,
since probing fails with:

[ 6.188278] leds-gpio: probe of leds-gpio failed with error -22

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..92db979 100644
--- a/arch/arm/mach-kirkwood/sheevaplug-setup.c
+++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c
@@ -94,6 +94,7 @@ static unsigned int sheevaplug_mpp_config[] __initdata = {
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 */
0

\
 
 \ /
  Last update: 2011-04-17 00:19    [from the cache]
©2003-2010