Skip to content

Commit

Permalink
[ARM] 4120/1: ep93xx: make clock init an arch_initcall()
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
buytenh authored and Russell King committed Feb 8, 2007
1 parent ae0a846 commit 51dd249
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion arch/arm/mach-ep93xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/string.h>
#include <asm/div64.h>
#include <asm/hardware.h>
Expand Down Expand Up @@ -124,7 +125,7 @@ static unsigned long calc_pll_rate(u32 config_word)
return (unsigned long)rate;
}

void ep93xx_clock_init(void)
static int __init ep93xx_clock_init(void)
{
u32 value;

Expand Down Expand Up @@ -153,4 +154,7 @@ void ep93xx_clock_init(void)
printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n",
clk_f.rate / 1000000, clk_h.rate / 1000000,
clk_p.rate / 1000000);

return 0;
}
arch_initcall(ep93xx_clock_init);
2 changes: 0 additions & 2 deletions arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,6 @@ void __init ep93xx_init_devices(void)
{
unsigned int v;

ep93xx_clock_init();

/*
* Disallow access to MaverickCrunch initially.
*/
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-ep93xx/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ void ep93xx_map_io(void);
void ep93xx_init_irq(void);
void ep93xx_init_time(unsigned long);
void ep93xx_init_devices(void);
void ep93xx_clock_init(void);
extern struct sys_timer ep93xx_timer;

struct ep93xx_eth_data
Expand Down

0 comments on commit 51dd249

Please sign in to comment.