sh: clkfwk: Add a followparent_recalc() helper.

This adds a followparent_recalc() helper for clocks that just follow the
parent's rate. Switch over the few CPUs that use this scheme for some of
their clocks.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2009-05-12 03:50:44 +09:00
父節點 b68d820143
當前提交 a02cb230bb
共有 6 個文件被更改,包括 11 次插入25 次删除

查看文件

@@ -646,15 +646,10 @@ static void sh7722_mstpcr_disable(struct clk *clk)
sh7722_mstpcr_start_stop(clk, 0);
}
static unsigned long sh7722_mstpcr_recalc(struct clk *clk)
{
return clk->parent->rate;
}
static struct clk_ops sh7722_mstpcr_clk_ops = {
.enable = sh7722_mstpcr_enable,
.disable = sh7722_mstpcr_disable,
.recalc = sh7722_mstpcr_recalc,
.recalc = followparent_recalc,
};
#define MSTPCR(_name, _parent, regnr, bitnr) \