Commit a387f0f5 authored by Mika Westerberg's avatar Mika Westerberg Committed by Russell King

ARM: 6359/1: ep93xx: move clock initialization earlier

Commit 7cfe2494 ("ARM: AMBA: Add pclk support to AMBA bus
infrastructure") changed AMBA bus to handle the PCLK automatically.
However, in EP93xx clock initialization is arch_initcall which is done
later than AMBA device identification. This causes
amba_get_enable_pclk() to fail resulting device where UARTs are not
functional.

So change ep93xx_clock_init() to be postcore_initcall.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@iki.fi>
Acked-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0485e18b
...@@ -560,4 +560,4 @@ static int __init ep93xx_clock_init(void) ...@@ -560,4 +560,4 @@ static int __init ep93xx_clock_init(void)
clkdev_add_table(clocks, ARRAY_SIZE(clocks)); clkdev_add_table(clocks, ARRAY_SIZE(clocks));
return 0; return 0;
} }
arch_initcall(ep93xx_clock_init); postcore_initcall(ep93xx_clock_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment