Skip to content

Commit

Permalink
ARM: 6912/1: bcmring: Add clkdev table in init_early
Browse files Browse the repository at this point in the history
Move adding clkdev table to init_early to make sure the common sp804 clockevents can be initialized properly.

Signed-off-by: Jiandong Zheng <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Jiandong Zheng authored and Russell King committed May 23, 2011
1 parent 23828a7 commit ede2e23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-bcmring/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ MACHINE_START(BCMRING, "BCMRING")
/* Maintainer: Broadcom Corporation */
.fixup = bcmring_fixup,
.map_io = bcmring_map_io,
.init_early = bcmring_init_early,
.init_irq = bcmring_init_irq,
.timer = &bcmring_timer,
.init_machine = bcmring_init_machine
Expand Down
7 changes: 5 additions & 2 deletions arch/arm/mach-bcmring/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
}
1 change: 1 addition & 0 deletions arch/arm/mach-bcmring/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
void __init bcmring_amba_init(void);
void __init bcmring_map_io(void);
void __init bcmring_init_irq(void);
void __init bcmring_init_early(void);

extern struct sys_timer bcmring_timer;
#endif

0 comments on commit ede2e23

Please sign in to comment.