Lines Matching refs:clk_data
87 struct clk_hw_onecell_data *clk_data; in clk_mt6795_infracfg_probe() local
96 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in clk_mt6795_infracfg_probe()
97 if (!clk_data) in clk_mt6795_infracfg_probe()
104 ret = mtk_clk_register_gates(node, infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
108 ret = mtk_clk_register_cpumuxes(node, cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
112 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_infracfg_probe()
119 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
121 mtk_clk_unregister_gates(infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
123 mtk_free_clk_data(clk_data); in clk_mt6795_infracfg_probe()
130 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt6795_infracfg_remove() local
133 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_remove()
134 mtk_clk_unregister_gates(infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_remove()
135 mtk_free_clk_data(clk_data); in clk_mt6795_infracfg_remove()