power: qpnp-smbcharger: fix hardware initialization sequence
Currently, in the function smbchg_hw_init, the return value of the call
to smbchg_set_thermal_limited_dc_current_max is always returned. This is
incorrect and will cause the rest of the hw_init function to never run.
Fix this by checking the return code and only returning if it's
non-zero.
Change-Id: I9de4862c3c54fa9a9183245b3bf53564c3f635d0
Signed-off-by:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment