diff options
author | David Brownell <david-b@pacbell.net> | 2009-04-07 17:51:49 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-04-08 14:13:48 +0100 |
commit | ac15e95090c2588ada4904c8c4ae8edd347acdf0 (patch) | |
tree | 1f39f501f87cc4719e934c22ae2b485b9d3a1622 /drivers/leds | |
parent | 577c9c456f0e1371cbade38eaf91ae8e8a308555 (diff) | |
download | op-kernel-dev-ac15e95090c2588ada4904c8c4ae8edd347acdf0.zip op-kernel-dev-ac15e95090c2588ada4904c8c4ae8edd347acdf0.tar.gz |
leds: just ignore invalid GPIOs in leds-gpio
Fix build problems with leds-gpio:
CC drivers/leds/leds-gpio.o
drivers/leds/leds-gpio.c: In function 'create_gpio_led':
drivers/leds/leds-gpio.c:85: warning: 'return' with no value, in function returning non-void
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 102ef4a..d210905 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -82,7 +82,7 @@ static int __devinit create_gpio_led(const struct gpio_led *template, if (!gpio_is_valid(template->gpio)) { printk(KERN_INFO "Skipping unavilable LED gpio %d (%s)\n", template->gpio, template->name); - return; + return 0; } ret = gpio_request(template->gpio, template->name); |