MLK-22512: power: supply: sabresd_battery: correct wakeup irq for battery
authorRobin Gong <yibin.gong@nxp.com>
Wed, 4 Sep 2019 14:15:05 +0000 (22:15 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Tue, 22 Oct 2019 17:36:42 +0000 (01:36 +0800)
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)

drivers/power/supply/sabresd_battery.c

index 5f479f8..d0dfb81 100644 (file)
@@ -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);