Lines Matching refs:clks
42 struct clk **clks, *base_clk, *prediv_clk; in sun4i_pll2_setup() local
57 clks = kcalloc(SUN4I_PLL2_OUTPUTS, sizeof(struct clk *), GFP_KERNEL); in sun4i_pll2_setup()
58 if (!clks) in sun4i_pll2_setup()
122 clks[SUN4I_A10_PLL2_1X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
127 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_1X])); in sun4i_pll2_setup()
137 clks[SUN4I_A10_PLL2_2X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
141 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_2X])); in sun4i_pll2_setup()
146 clks[SUN4I_A10_PLL2_4X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
150 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_4X])); in sun4i_pll2_setup()
155 clks[SUN4I_A10_PLL2_8X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
159 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_8X])); in sun4i_pll2_setup()
161 clk_data->clks = clks; in sun4i_pll2_setup()
174 kfree(clks); in sun4i_pll2_setup()