mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
power: supply: act8945a_charger: Achieve properties from its node
Since the act8945a_charger is regarded as a sub-device, all properties will be assigned to its own device node. All properties can be achieved from its own node, instead of from its parent device. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
2fe921758f
commit
5da643b26d
1 changed files with 2 additions and 2 deletions
|
@ -328,11 +328,11 @@ static int act8945a_charger_probe(struct platform_device *pdev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = act8945a_charger_config(pdev->dev.parent, charger);
|
ret = act8945a_charger_config(&pdev->dev, charger);
|
||||||
if (ret)
|
if (ret)
|
||||||
return 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_cfg.drv_data = charger;
|
||||||
|
|
||||||
psy = devm_power_supply_register(&pdev->dev,
|
psy = devm_power_supply_register(&pdev->dev,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue