Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fe5ee0e authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: clkfwk: Use arch_clk_init() for on-chip clock registration.



CPUs registering on-chip clocks should be using arch_clk_init() with the
new scheme so that the CPUs have the opportunity to establish the
topology prior to the initial root clock rate propagation. This ensures
that CPUs with on-chip clocks that use CLK_ENABLE_ON_INIT are properly
enabled at the initial propagation time, without having to further poke
the root clocks.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent f3f8290c
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -437,13 +437,7 @@ void clk_put(struct clk *clk)
}
EXPORT_SYMBOL_GPL(clk_put);

void __init __attribute__ ((weak))
arch_init_clk_ops(struct clk_ops **ops, int type)
{
}

int __init __attribute__ ((weak))
arch_clk_init(void)
int __init __weak arch_clk_init(void)
{
	return 0;
}
+1 −2
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static struct clk *sh4202_onchip_clocks[] = {
	&sh4202_shoc_clk,
};

static int __init sh4202_clk_init(void)
int __init arch_clk_init(void)
{
	struct clk *clk = clk_get(NULL, "master_clk");
	int i, ret = 0;
@@ -166,4 +166,3 @@ static int __init sh4202_clk_init(void)

	return ret;
}
arch_initcall(sh4202_clk_init);
+1 −2
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ static struct clk *sh7763_onchip_clocks[] = {
	&sh7763_shyway_clk,
};

static int __init sh7763_clk_init(void)
int __init arch_clk_init(void)
{
	struct clk *clk = clk_get(NULL, "master_clk");
	int i, ret = 0;
@@ -106,4 +106,3 @@ static int __init sh7763_clk_init(void)

	return ret;
}
arch_initcall(sh7763_clk_init);
+1 −2
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ static struct clk *sh7780_onchip_clocks[] = {
	&sh7780_shyway_clk,
};

static int __init sh7780_clk_init(void)
int __init arch_clk_init(void)
{
	struct clk *clk = clk_get(NULL, "master_clk");
	int i, ret = 0;
@@ -112,4 +112,3 @@ static int __init sh7780_clk_init(void)

	return ret;
}
arch_initcall(sh7780_clk_init);
+1 −2
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ static struct clk *sh7785_onchip_clocks[] = {
	&sh7785_ram_clk,
};

static int __init sh7785_clk_init(void)
int __init arch_clk_init(void)
{
	struct clk *clk = clk_get(NULL, "master_clk");
	int i, ret = 0;
@@ -150,4 +150,3 @@ static int __init sh7785_clk_init(void)

	return ret;
}
arch_initcall(sh7785_clk_init);
Loading