diff options
author | Milo(Woogyom) Kim <milo.kim@ti.com> | 2013-02-05 17:49:46 +0900 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-02-06 15:59:25 -0800 |
commit | 944f7b1dedb859f76a88c8d34ce23a90bf6285a0 (patch) | |
tree | ba55b8a43e9f1077abe7df911292ab9ef43dcf73 /crypto/eseqiv.c | |
parent | 8a4529a38d38f53657769b942f6fc5d34f2c64b5 (diff) | |
download | op-kernel-dev-944f7b1dedb859f76a88c8d34ce23a90bf6285a0.zip op-kernel-dev-944f7b1dedb859f76a88c8d34ce23a90bf6285a0.tar.gz |
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 'crypto/eseqiv.c')
0 files changed, 0 insertions, 0 deletions