sh: sh4a sh_clk_ops rename
Convert sh4a SoCs to use sh_clk_ops. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
3b8744156d
commit
33cb61a400
@@ -27,7 +27,7 @@ static void master_clk_init(struct clk *clk)
|
||||
clk->rate *= p0fc_divisors[(__raw_readl(FRQCR) >> 4) & 0x07];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7763_master_clk_ops = {
|
||||
static struct sh_clk_ops sh7763_master_clk_ops = {
|
||||
.init = master_clk_init,
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@ static unsigned long module_clk_recalc(struct clk *clk)
|
||||
return clk->parent->rate / p0fc_divisors[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7763_module_clk_ops = {
|
||||
static struct sh_clk_ops sh7763_module_clk_ops = {
|
||||
.recalc = module_clk_recalc,
|
||||
};
|
||||
|
||||
@@ -47,22 +47,22 @@ static unsigned long bus_clk_recalc(struct clk *clk)
|
||||
return clk->parent->rate / bfc_divisors[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7763_bus_clk_ops = {
|
||||
static struct sh_clk_ops sh7763_bus_clk_ops = {
|
||||
.recalc = bus_clk_recalc,
|
||||
};
|
||||
|
||||
static struct clk_ops sh7763_cpu_clk_ops = {
|
||||
static struct sh_clk_ops sh7763_cpu_clk_ops = {
|
||||
.recalc = followparent_recalc,
|
||||
};
|
||||
|
||||
static struct clk_ops *sh7763_clk_ops[] = {
|
||||
static struct sh_clk_ops *sh7763_clk_ops[] = {
|
||||
&sh7763_master_clk_ops,
|
||||
&sh7763_module_clk_ops,
|
||||
&sh7763_bus_clk_ops,
|
||||
&sh7763_cpu_clk_ops,
|
||||
};
|
||||
|
||||
void __init arch_init_clk_ops(struct clk_ops **ops, int idx)
|
||||
void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx)
|
||||
{
|
||||
if (idx < ARRAY_SIZE(sh7763_clk_ops))
|
||||
*ops = sh7763_clk_ops[idx];
|
||||
@@ -74,7 +74,7 @@ static unsigned long shyway_clk_recalc(struct clk *clk)
|
||||
return clk->parent->rate / cfc_divisors[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7763_shyway_clk_ops = {
|
||||
static struct sh_clk_ops sh7763_shyway_clk_ops = {
|
||||
.recalc = shyway_clk_recalc,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user