commit | 0e01af6c212fe9e28bf2603a95c90c68ff0175e9 | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Mon May 06 12:56:08 2013 -0700 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Wed May 08 15:31:10 2013 -0700 |
tree | 467efc6832d34ebfd0391a92efa34703ad265257 | |
parent | 806c5a235fc5e3004dd4d156d89950c79982131a [diff] |
power: qpnp-bms: fix rtc cleanup Currently the BMS tries to close the rtc class if it fails to open. However, when this happens, the open function returns NULL. Passing a NULL to the rtc_class_close function crashes the kernel. Fix this by doing nothing if the rtc class fails to open. Change-Id: I30e7d7608b745815aaa8d5c43912e6a20b2eb6f7 Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>