clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe
Subsystems (2)
PATCH v2 1/1 clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe
From: Yassine Oudjana <[email protected]>
Register gates with dev in mtk_clk_simple_probe.
Signed-off-by Yassine Oudjana <[email protected]>
Reviewed-by Chen-Yu Tsai <[email protected]>
Reviewed-by AngeloGioacchino Del Regno <[email protected]>
---
This patch was originally part of a series, and is sent alone now since it doesn't depend on the rest of it and can be applied directly:
https://lore.kernel.org/linux-clk/[email protected]/
drivers/clk/mediatek/clk-mtk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/mediatek/clk-mtk.c +2 -1
@@ -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;
Signature · 1 line
2.37.1
Quoted 8 lines · Yassine Oudjana
From: Yassine Oudjana <[email protected]>
Register gates with dev in
mtk_clk_simple_probe.Signed-off-by Yassine Oudjana <[email protected]>Reviewed-by Chen-Yu Tsai <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
I've queued this patch up here [1] and will send a pull request to the clock maintainer later this week.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git/log/?h=clk-mtk-for-6.1