diff options
author | AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> | 2023-01-20 10:20:35 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-01-31 01:45:06 +0100 |
commit | 01a6c1ab57c3a474c8d23c7d82c3fcce85f62612 (patch) | |
tree | 7c7dcb2b66566bd3b60ea46d36d90aba33e88693 /drivers/clk/mediatek/clk-mt6795-topckgen.c | |
parent | clk: mediatek: cpumux: Propagate struct device where possible (diff) | |
download | linux-01a6c1ab57c3a474c8d23c7d82c3fcce85f62612.tar.xz linux-01a6c1ab57c3a474c8d23c7d82c3fcce85f62612.zip |
clk: mediatek: clk-mtk: Propagate struct device for composites
Like done for cpumux clocks, propagate struct device for composite
clocks registered through clk-mtk helpers to be able to get runtime
pm support for MTK clocks.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20230120092053.182923-6-angelogioacchino.delregno@collabora.com
Tested-by: Mingming Su <mingming.su@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt6795-topckgen.c')
-rw-r--r-- | drivers/clk/mediatek/clk-mt6795-topckgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-mt6795-topckgen.c b/drivers/clk/mediatek/clk-mt6795-topckgen.c index 8b8307635a35..62beca56ee01 100644 --- a/drivers/clk/mediatek/clk-mt6795-topckgen.c +++ b/drivers/clk/mediatek/clk-mt6795-topckgen.c @@ -557,7 +557,8 @@ static int clk_mt6795_topckgen_probe(struct platform_device *pdev) if (ret) goto unregister_factors; - ret = mtk_clk_register_composites(top_aud_divs, ARRAY_SIZE(top_aud_divs), base, + ret = mtk_clk_register_composites(&pdev->dev, top_aud_divs, + ARRAY_SIZE(top_aud_divs), base, &mt6795_top_clk_lock, clk_data); if (ret) goto unregister_muxes; |