leds: leds-qpnp-wled: reset WLED enable register in wled probe

Reset WLED enable register in probe so that WLED rail consumes the
same current before and after the suspend.

Change-Id: Ib0a96407d730a8e6349855a9559d5d7686326da6
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
This commit is contained in:
Abinaya P 2015-05-26 16:02:40 +05:30
parent 18d8c93132
commit 41a9be703d
1 changed files with 6 additions and 0 deletions

View File

@ -1569,6 +1569,12 @@ static int qpnp_wled_probe(struct spmi_device *spmi)
gwled = wled;
rc = qpnp_wled_module_en(wled, wled->ctrl_base, false);
if (rc) {
dev_err(&spmi->dev, "wled disable failed(%d)\n", rc);
return rc;
}
return 0;
sysfs_fail: