diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2016-08-25 10:19:50 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-08-31 17:46:43 +0300 |
commit | 5da643b26d280e1b061e18b92bc7d5709ee8034e (patch) | |
tree | 7256bf35bb9f1d30e3ff8c21868ec8d81a4a0491 /drivers/power/supply | |
parent | 2fe921758f6ebbfd1df73bcf0a9af6a682cef2b5 (diff) | |
download | linux-5da643b26d280e1b061e18b92bc7d5709ee8034e.tar.xz |
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/supply')
-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, |