summaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-05-17 13:42:43 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 13:07:56 +0100
commit1e653accf7d2b02e75af550963b261b3243ac20e (patch)
treef99ceca467627432ac96058bba479af1a3bf4fab /drivers/leds/Kconfig
parent7e1ce34f25c984a93dc0a2d8c217f7f78516b376 (diff)
downloadop-kernel-dev-1e653accf7d2b02e75af550963b261b3243ac20e.zip
op-kernel-dev-1e653accf7d2b02e75af550963b261b3243ac20e.tar.gz
leds: leds-ss4200: fix led_classdev_unregister twice in error handling
In current implementation, if device_create_file failed in register_nasgpio_led, led_classdev_unregister will be executed twice. ( in register_nasgpio_led it calls led_classdev_unregister before return and in nas_gpio_init out_err ) This patch fixes it by only unregistering those that were successfully registered in out_err. ( not including last failed register_nasgpio_led call ) Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Dave Hansen <dave@sr71.net> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud