diff options
author | Milo(Woogyom) Kim <milo.kim@ti.com> | 2013-02-05 09:49:46 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-02-07 00:59:25 +0100 |
commit | 944f7b1dedb859f76a88c8d34ce23a90bf6285a0 (patch) | |
tree | ba55b8a43e9f1077abe7df911292ab9ef43dcf73 /drivers/leds/leds-ss4200.c | |
parent | leds: wm831x: add missing const (diff) | |
download | linux-944f7b1dedb859f76a88c8d34ce23a90bf6285a0.tar.xz linux-944f7b1dedb859f76a88c8d34ce23a90bf6285a0.zip |
leds-lp55xx: clean up init_device() in lp5521/5523
To make _probe() simple, device initialization code is moved to
_init_device() at each driver.
This patch is a preceding step for lp55xx common driver architecture.
leds-lp5521:
When 'lp5521_init_device()' gets failed, error handling should be 'fail1'
rather than 'fail2'.
fail1: releasing platform resource and return code
fail2: releasing allocated LED devices with handling 'fail1'
The 'lp5521_init_device()' is called before creating LED devices.
Thus, 'goto fail1' is proper error handler of this function.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-ss4200.c')
0 files changed, 0 insertions, 0 deletions