Skip to content

Commit 4398719

Browse files
committed
fixup! soc: apple: Add DockChannel driver
use devm_of_platform_populate() instead of manually iterating over all nodes. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 7e72c13 commit 4398719

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/soc/apple/dockchannel.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ static int dockchannel_probe(struct platform_device *pdev)
361361
irq_set_handler_data(dcc->irq, dcc);
362362
irq_set_chained_handler(dcc->irq, dockchannel_irq);
363363

364-
for_each_child_of_node(dev->of_node, child)
365-
of_platform_device_create(child, NULL, dev);
364+
devm_of_platform_populate(dev);
366365

367366
return 0;
368367
}

0 commit comments

Comments
 (0)