If _omap2_clk_enable() fails, the clock's usecount must be decremented by
one no matter whether the clock has a parent or not.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
ret = _omap2_clk_enable(clk);
if (ret != 0) {
ret = _omap2_clk_enable(clk);
if (ret != 0) {
omap2_clkdm_clk_disable(clk->clkdm.ptr, clk);
omap2_clkdm_clk_disable(clk->clkdm.ptr, clk);
omap2_clk_disable(clk->parent);
omap2_clk_disable(clk->parent);