Commit 9ec105db authored by Yassine Oudjana's avatar Yassine Oudjana Committed by Chen-Yu Tsai

clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe

Register gates with dev in mtk_clk_simple_probe.
Signed-off-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220813083319.45455-1-y.oudjana@protonmail.comSigned-off-by: default avatarChen-Yu Tsai <wenst@chromium.org>
parent 5066c9ac
......@@ -434,7 +434,8 @@ int mtk_clk_simple_probe(struct platform_device *pdev)
if (!clk_data)
return -ENOMEM;
r = mtk_clk_register_gates(node, mcd->clks, mcd->num_clks, clk_data);
r = mtk_clk_register_gates_with_dev(node, mcd->clks, mcd->num_clks,
clk_data, &pdev->dev);
if (r)
goto free_data;
......
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