summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcmring/core.c
diff options
context:
space:
mode:
authorJiandong Zheng <jdzheng@broadcom.com>2011-05-19 00:36:57 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-05-23 18:04:54 +0100
commitede2e23456c1a4b9ce038bb4ed095ed442b1b07e (patch)
treeeb7f7df27c4918572a3457a8cff8cebe51092ef0 /arch/arm/mach-bcmring/core.c
parent23828a7a976eb8dbe3b5f4e83584c3fe814b295b (diff)
downloadblackbird-op-linux-ede2e23456c1a4b9ce038bb4ed095ed442b1b07e.tar.gz
blackbird-op-linux-ede2e23456c1a4b9ce038bb4ed095ed442b1b07e.zip
ARM: 6912/1: bcmring: Add clkdev table in init_early
Move adding clkdev table to init_early to make sure the common sp804 clockevents can be initialized properly. Signed-off-by: Jiandong Zheng <jdzheng@broadcom.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-bcmring/core.c')
-rw-r--r--arch/arm/mach-bcmring/core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-bcmring/core.c b/arch/arm/mach-bcmring/core.c
index 8fc2035759fb..eca20ed228b3 100644
--- a/arch/arm/mach-bcmring/core.c
+++ b/arch/arm/mach-bcmring/core.c
@@ -151,8 +151,6 @@ void __init bcmring_amba_init(void)
chipcHw_busInterfaceClockEnable(bus_clock);
- clkdev_add_table(lookups, ARRAY_SIZE(lookups));
-
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
amba_device_register(d, &iomem_resource);
@@ -365,3 +363,8 @@ void __init bcmring_init_timer(void)
struct sys_timer bcmring_timer = {
.init = bcmring_init_timer,
};
+
+void __init bcmring_init_early(void)
+{
+ clkdev_add_table(lookups, ARRAY_SIZE(lookups));
+}
OpenPOWER on IntegriCloud