commit | 3909357fc3ab2fc66910f02079ff3f4c1fe7bd49 | [log] [tgz] |
---|---|---|
author | David Keitel <dkeitel@codeaurora.org> | Wed Jun 05 15:32:30 2013 -0700 |
committer | David Keitel <dkeitel@codeaurora.org> | Thu Jun 06 10:43:42 2013 -0700 |
tree | 915e8c3771c9859c9ee755ccad6f161f6ce00ae7 | |
parent | 15fa1f3240aa8be5077a80a0a23c4a7853981316 [diff] |
power: qpnp-charger: check base address in qpnp_chg_write/read When one of the peripherals is not initialized it may occur that an incorrect register may be attempted to be written. Fix this by adding a check for the base address when attempting a spmi read or write. CRs-Fixed: 495966 Change-Id: I6d9fd3fe747992e5e601cef210eb19875ce9036c Signed-off-by: David Keitel <dkeitel@codeaurora.org>