diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2016-08-25 15:19:50 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-08-31 16:46:43 +0200 |
commit | 5da643b26d280e1b061e18b92bc7d5709ee8034e (patch) | |
tree | 7256bf35bb9f1d30e3ff8c21868ec8d81a4a0491 /drivers/power | |
parent | 2fe921758f6ebbfd1df73bcf0a9af6a682cef2b5 (diff) | |
download | linux-5da643b26d280e1b061e18b92bc7d5709ee8034e.tar.bz2 |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/act8945a_charger.c | 4 |
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, |