clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe
Register gates with dev in mtk_clk_simple_probe. Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220813083319.45455-1-y.oudjana@protonmail.com Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
This commit is contained in:
parent
5066c9acf5
commit
9ec105db6d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue