Commit 037b2113 authored by Ryder Lee's avatar Ryder Lee Committed by Stephen Boyd

clk: mediatek: add devm_of_platform_populate() for MT7622 audsys

Add devm_of_platform_populate() to populate devices which are children
of the root node.
Signed-off-by: default avatarRyder Lee <>
Signed-off-by: default avatarStephen Boyd <>
parent 9cb12501
......@@ -150,11 +150,23 @@ static int clk_mt7622_audiosys_init(struct platform_device *pdev)
r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
if (r)
if (r) {
"could not register clock provider: %s: %d\n",
pdev->name, r);
goto err_clk_provider;
r = devm_of_platform_populate(&pdev->dev);
if (r)
goto err_plat_populate;
return 0;
return r;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment