Message ID | 1361553474-27022-4-git-send-email-g.liakhovetski@gmx.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index 3170482..f9a015d 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c @@ -809,6 +809,9 @@ void __init sh73a0_clock_init(void) { int k, ret = 0; + if (main_clk.parent) + return; + /* Set SDHI clocks to a known state */ __raw_writel(0x108, SD0CKCR); __raw_writel(0x108, SD1CKCR);
sh73a0_clock_init() is called from sh73a0_earlytimer_init() and sh73a0_add_standard_devices_dt(), take care to only run it once. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- This patch shouldn't be needed, sh73a0_clock_init() shouldn't be called twice. It's here only as an illustration, how I actually was testing. arch/arm/mach-shmobile/clock-sh73a0.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)