power: qpnp-charger: fix possible race condition

If the dc supply is registered earlier, the
framework misses calling the battery's
external_power_supply_changed().

This causes undesired behaviour in userspace
not being updated correctly.

Fix this by registering the battery supply
first and then registering the DC supply.

CRs-Fixed: 452862
Change-Id: I573289d75854a4293cdbdda6afecea011dd4c3ab
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
1 file changed