@@ -253,7 +253,5 @@ static int __init sh_clk_div_register_ops(struct clk *clks, int nr,
- if (!freq_table) {
- pr_err("%s: unable to alloc memory\n", __func__);
+ if (!freq_table)
return -ENOMEM;
- }
for (k = 0; !ret && (k < nr); k++) {
clkp = clks + k;
@@ -474,7 +472,5 @@ int __init sh_clk_fsidiv_register(struct clk *clks, int nr)
- if (!map) {
- pr_err("%s: unable to alloc memory\n", __func__);
+ if (!map)
return -ENOMEM;
- }
/* clks[i].enable_reg came from SH_CLK_FSIDIV() */
map->phys = (phys_addr_t)clks[i].enable_reg;