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:
@@ -90,6 +90,12 @@ static void propagate_rate(struct clk *clk)
|
||||
}
|
||||
}
|
||||
|
||||
/* Used for clocks that always have same value as the parent clock */
|
||||
unsigned long followparent_recalc(struct clk *clk)
|
||||
{
|
||||
return clk->parent->rate;
|
||||
}
|
||||
|
||||
static void __clk_init(struct clk *clk)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user