drivers/leds/leds-gpio.c: properly initialize return value
authorDavidlohr Bueso <dave@gnu.org>
Thu, 11 Nov 2010 22:05:24 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Nov 2010 15:55:32 +0000 (07:55 -0800)
commit25672b9dde18b86e736b8138bcffbaf7158d160a
tree1dc696c4c4be7538cd492ef59b1d1ac6d176487b
parent5991e154b2d09ad28af9dc7d3226b35dbbc052c3
drivers/leds/leds-gpio.c: properly initialize return value

In the event that none of the configs are set (CONFIG_LEDS_GPIO_PLATFORM,
CONFIG_LEDS_GPIO_OF, CONFIG_LEDS_GPIO_PLATFORM), we will return a bogus
value when initializing the module.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/leds-gpio.c