Lines Matching refs:clks
166 struct clk **clks; in cpg_mstp_clocks_init() local
170 clks = kmalloc(MSTP_MAX_CLOCKS * sizeof(*clks), GFP_KERNEL); in cpg_mstp_clocks_init()
171 if (group == NULL || clks == NULL) { in cpg_mstp_clocks_init()
173 kfree(clks); in cpg_mstp_clocks_init()
179 group->data.clks = clks; in cpg_mstp_clocks_init()
187 kfree(clks); in cpg_mstp_clocks_init()
192 clks[i] = ERR_PTR(-ENOENT); in cpg_mstp_clocks_init()
222 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init()
224 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init()
235 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init()
238 __func__, np->name, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init()