Skip to content

Commit

Permalink
clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yassine Oudjana authored and Chen-Yu Tsai committed Sep 26, 2022
1 parent 5066c9a commit 9ec105d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/mediatek/clk-mtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9ec105d

Please sign in to comment.