Lines Matching refs:clks
160 struct clk **clks; in cpg_mstp_clocks_init() local
164 clks = kmalloc(MSTP_MAX_CLOCKS * sizeof(*clks), GFP_KERNEL); in cpg_mstp_clocks_init()
165 if (group == NULL || clks == NULL) { in cpg_mstp_clocks_init()
167 kfree(clks); in cpg_mstp_clocks_init()
173 group->data.clks = clks; in cpg_mstp_clocks_init()
181 kfree(clks); in cpg_mstp_clocks_init()
186 clks[i] = ERR_PTR(-ENOENT); in cpg_mstp_clocks_init()
216 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init()
218 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init()
229 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init()
232 __func__, np->name, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init()