summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-gpio.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-11-23 18:34:58 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-11-23 18:34:58 +0100
commit9b8b317d58084b9a44f6f33b355c4278d9f841fb (patch)
treee0df89800bf4301c4017db3cdf04a2056ec1a852 /drivers/leds/leds-gpio.c
parentRevert "knfsd: avoid overloading the CPU scheduler with enormous load averages" (diff)
parentLinux 2.6.32-rc8 (diff)
downloadlinux-9b8b317d58084b9a44f6f33b355c4278d9f841fb.tar.xz
linux-9b8b317d58084b9a44f6f33b355c4278d9f841fb.zip
Merge commit 'v2.6.32-rc8' into HEAD
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r--drivers/leds/leds-gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 7467980b8cf9..e5225d28f392 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -78,6 +78,8 @@ static int __devinit create_gpio_led(const struct gpio_led *template,
{
int ret, state;
+ led_dat->gpio = -1;
+
/* skip leds that aren't available */
if (!gpio_is_valid(template->gpio)) {
printk(KERN_INFO "Skipping unavailable LED gpio %d (%s)\n",