Lines Matching refs:clk_data
65 struct clk_hw_onecell_data *clk_data; in clk_mt8186_mm_probe() local
68 clk_data = mtk_alloc_clk_data(CLK_MM_NR_CLK); in clk_mt8186_mm_probe()
69 if (!clk_data) in clk_mt8186_mm_probe()
72 r = mtk_clk_register_gates(node, mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_probe()
76 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_mm_probe()
80 platform_set_drvdata(pdev, clk_data); in clk_mt8186_mm_probe()
85 mtk_clk_unregister_gates(mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_probe()
87 mtk_free_clk_data(clk_data); in clk_mt8186_mm_probe()
95 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8186_mm_remove() local
98 mtk_clk_unregister_gates(mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_remove()
99 mtk_free_clk_data(clk_data); in clk_mt8186_mm_remove()