@@ -783,7 +783,6 @@ int omap2_clksel_set_rate(struct clk *clk, unsigned long rate)
int omap2_clk_set_rate(struct clk *clk, unsigned long rate)
{
int ret = -EINVAL;
- unsigned long temp_rate;
if (!clk->set_rate)
return -EINVAL;
@@ -798,11 +797,6 @@ int omap2_clk_set_rate(struct clk *clk, unsigned long rate)
ret = clk->set_rate(clk, rate);
- temp_rate = clk->rate;
- clk->rate = clk->temp_rate;
- omap_clk_notify_downstream(clk, CLK_POST_RATE_CHANGE);
- clk->rate = temp_rate;
-
return ret;
}
@@ -878,14 +872,11 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
_omap2_clk_enable(clk);
clk->parent = new_parent;
+ clk->rate = new_rate;
pr_debug("clock: %s: set parent to %s (orig rate %ld, new rate %ld)\n",
clk->name, clk->parent->name, orig_rate, new_rate);
- omap_clk_notify_downstream(clk, CLK_POST_RATE_CHANGE);
-
- clk->rate = new_rate;
-
return 0;
}