aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/supply/rpi_poe_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rpi_poe_power.c b/drivers/power/supply/rpi_poe_power.c
index e96f98c39f0e..242da43acccd 100644
--- a/drivers/power/supply/rpi_poe_power.c
+++ b/drivers/power/supply/rpi_poe_power.c
@@ -209,7 +209,7 @@ static int rpi_poe_power_supply_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ctx);
- psy_cfg.of_node = pdev->dev.of_node;
+ psy_cfg.fwnode = dev_fwnode(&pdev->dev);
psy_cfg.drv_data = ctx;
ctx->supply = devm_power_supply_register(&pdev->dev,