Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 15:19:45 +0000 (08:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 15:19:45 +0000 (08:19 -0700)
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
  leds: just ignore invalid GPIOs in leds-gpio

drivers/leds/leds-gpio.c

index 102ef4a14c5fea075c40226b3914cffe61f8b2d0..d2109054de858b95402ee7d0489704561d6750a2 100644 (file)
@@ -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);