On Tue, Mar 12, 2013 at 01:42:19AM +0100, Heiko Stübner wrote: > + clk = clk_register(NULL, &pll->hw); > + if (IS_ERR(clk)) { > + pr_err("%s: failed to register pll clock %s\n", __func__, > + name); > + kfree(pll); > + } > + > + if (clk_register_clkdev(clk, name, NULL)) > + pr_err("%s: failed to register lookup for %s", __func__, name); The above looks wrong to me. > + clk = clk_register(NULL, &pll->hw); > + if (IS_ERR(clk)) { > + pr_err("%s: failed to register pll clock %s\n", __func__, > + name); > + kfree(pll); > + } > + > + if (clk_register_clkdev(clk, name, NULL)) > + pr_err("%s: failed to register lookup for %s", __func__, name); Same pattern here. > + clk = clk_register(NULL, &pll->hw); > + if (IS_ERR(clk)) { > + pr_err("%s: failed to register pll clock %s\n", __func__, > + name); > + kfree(pll); > + } > + > + if (clk_register_clkdev(clk, name, NULL)) > + pr_err("%s: failed to register lookup for %s", __func__, name); And again here. > + clk = clk_register(NULL, &pll->hw); > + if (IS_ERR(clk)) { > + pr_err("%s: failed to register pll clock %s\n", __func__, > + name); > + kfree(pll); > + } > + > + if (clk_register_clkdev(clk, name, NULL)) > + pr_err("%s: failed to register lookup for %s", __func__, name); And again here... do you notice something about these? They're all the same. Do you know what we do when we have the same thing repeated and only the data is different? -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html