summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2019-09-04 22:15:05 +0800
committerRobin Gong <yibin.gong@nxp.com>2019-10-09 22:41:59 +0800
commit63acdd5a932631f7c7cd76f2857fe0700525ccc1 (patch)
tree63f5769cc1dd0643e84579157cb2dc82bde57ca0 /drivers/power
parent113c84bc7d4f0e10ba2020c8f0c866e4535e6998 (diff)
MLK-22512: power: supply: sabresd_battery: correct wakeup irq for battery
Fix no wakeup from suspend while AC/USB charger plug in. Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Anson Huang <anson.huang@nxp.com> (cherry picked from commit 1674f23cf12175833fa96e8030e9ceeff20f5998)
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/sabresd_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/sabresd_battery.c b/drivers/power/supply/sabresd_battery.c
index 5f479f83525a..d0dfb810484e 100644
--- a/drivers/power/supply/sabresd_battery.c
+++ b/drivers/power/supply/sabresd_battery.c
@@ -847,7 +847,7 @@ static int max8903_probe(struct platform_device *pdev)
if (ret)
dev_err(&pdev->dev, "create device file failed!\n");
- device_set_wakeup_capable(&pdev->dev, true);
+ device_init_wakeup(&pdev->dev, true);
max8903_charger_update_status(data);
max8903_battery_update_status(data);