Lines Matching refs:onecell
1597 struct clk_onecell_data *onecell; in ds3231_clks_register() local
1600 onecell = devm_kzalloc(ds1307->dev, sizeof(*onecell), GFP_KERNEL); in ds3231_clks_register()
1601 if (!onecell) in ds3231_clks_register()
1604 onecell->clk_num = ARRAY_SIZE(ds3231_clks_init); in ds3231_clks_register()
1605 onecell->clks = devm_kcalloc(ds1307->dev, onecell->clk_num, in ds3231_clks_register()
1606 sizeof(onecell->clks[0]), GFP_KERNEL); in ds3231_clks_register()
1607 if (!onecell->clks) in ds3231_clks_register()
1628 onecell->clks[i] = devm_clk_register(ds1307->dev, in ds3231_clks_register()
1630 if (IS_ERR(onecell->clks[i])) in ds3231_clks_register()
1631 return PTR_ERR(onecell->clks[i]); in ds3231_clks_register()
1635 of_clk_add_provider(node, of_clk_src_onecell_get, onecell); in ds3231_clks_register()