power: qpnp-charger: only apply ibat-loop fix when battery is present

An issue was observed where the device could continuously reset when
the battery pins are left floating and the ibat-loop was disabled.

Fix this by only applying the ibat-loop workaround when the device has
a battery present.

Change-Id: I273b8fe3dc3c99e9bbb619e8e15abfd4c298366e
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
1 file changed