summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/act8945a_charger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/act8945a_charger.c b/drivers/power/supply/act8945a_charger.c
index b5c00e45741e..3f486c9362c8 100644
--- a/drivers/power/supply/act8945a_charger.c
+++ b/drivers/power/supply/act8945a_charger.c
@@ -328,11 +328,11 @@ static int act8945a_charger_probe(struct platform_device *pdev)
return -EINVAL;
}
- ret = act8945a_charger_config(pdev->dev.parent, charger);
+ ret = act8945a_charger_config(&pdev->dev, charger);
if (ret)
return ret;
- psy_cfg.of_node = pdev->dev.parent->of_node;
+ psy_cfg.of_node = pdev->dev.of_node;
psy_cfg.drv_data = charger;
psy = devm_power_supply_register(&pdev->dev,