diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-01-26 22:58:30 -0800 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 20:40:54 +0400 |
commit | 7da6334e73fe3c0579d8c6a56001336a430a5d99 (patch) | |
tree | 3fd627bfeb4a781d7217f3cb40264678b1f24e97 /drivers/input | |
parent | e39b828f5355e41a8fd24f413fb9dfb81d808397 (diff) | |
download | linux-stable-7da6334e73fe3c0579d8c6a56001336a430a5d99.tar.gz linux-stable-7da6334e73fe3c0579d8c6a56001336a430a5d99.tar.bz2 linux-stable-7da6334e73fe3c0579d8c6a56001336a430a5d99.zip |
lp8727_charger: Add error check routine on probe()
Add error checking on initializing registers and interrupt handler.
Initializing registers - lp8727_init_device()
: check i2c error during probing the driver.
Initializing interrupt handler - lp8727_intr_config()
: check an error on creating the irq thread.
If an error occurs on probing lp8727 driver, allocated lp8727 driver memory is freed.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions