summaryrefslogtreecommitdiff
path: root/drivers/leds/flash/leds-rt8515.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/flash/leds-rt8515.c')
-rw-r--r--drivers/leds/flash/leds-rt8515.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/flash/leds-rt8515.c b/drivers/leds/flash/leds-rt8515.c
index 6af0d2c7fc56..f6b439674c03 100644
--- a/drivers/leds/flash/leds-rt8515.c
+++ b/drivers/leds/flash/leds-rt8515.c
@@ -304,7 +304,7 @@ static int rt8515_probe(struct platform_device *pdev)
return dev_err_probe(dev, PTR_ERR(rt->enable_torch),
"cannot get ENT (enable torch) GPIO\n");
- child = fwnode_get_next_available_child_node(dev->fwnode, NULL);
+ child = device_get_next_child_node(dev, NULL);
if (!child) {
dev_err(dev,
"No fwnode child node found for connected LED.\n");