From: Milo(Woogyom) Kim Date: Tue, 5 Feb 2013 08:49:46 +0000 (+0900) Subject: leds-lp55xx: clean up init_device() in lp5521/5523 X-Git-Tag: v3.9-rc1~79^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944f7b1dedb859f76a88c8d34ce23a90bf6285a0;p=pandora-kernel.git 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 Signed-off-by: Bryan Wu --- Reading git-diff-tree failed