We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de244e commit 8c3985bCopy full SHA for 8c3985b
drivers/power/supply/acer_a500_battery.c
@@ -233,14 +233,15 @@ static int a500_battery_probe(struct platform_device *pdev)
233
234
psy_cfg.of_node = pdev->dev.parent->of_node;
235
psy_cfg.drv_data = bat;
236
+ psy_cfg.no_wakeup_source = true;
237
238
bat->regmap = dev_get_regmap(pdev->dev.parent, "KB930");
239
if (!bat->regmap)
240
return -EINVAL;
241
- bat->psy = devm_power_supply_register_no_ws(&pdev->dev,
242
- &a500_battery_desc,
243
- &psy_cfg);
+ bat->psy = devm_power_supply_register(&pdev->dev,
+ &a500_battery_desc,
244
+ &psy_cfg);
245
if (IS_ERR(bat->psy))
246
return dev_err_probe(&pdev->dev, PTR_ERR(bat->psy),
247
"failed to register battery\n");
0 commit comments