power: qpnp-charger: Unregister regulators during probe failure
Add calls to regulator_unregister() for the qpnp-charger OTG and
boost regulators in the probe error path. This ensures that the
regulators are correctly removed when the driver is not probed
successfully. This ensures that regulator consumers and the
regulator framework core cannot use the OTG and boost regulators
after the data defining them has been released via kfree().
Change-Id: I8f5b95991a472d5036e54f39aab3f043ff9cf65b
Signed-off-by: David Collins <collinsd@codeaurora.org>
1 file changed