diff options
| author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-08-27 14:42:06 +0200 | 
|---|---|---|
| committer | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-09-29 21:09:29 +0200 | 
| commit | 26cae166cff9148cd2cab40f64ed548ba1189a8e (patch) | |
| tree | 0123ea6e21a91d1c10ef6924c8197e3a246b0b72 /arch/arm/mach-highbank | |
| parent | e8ecbc7c51a4c27030427db055597fb53e29d0db (diff) | |
| download | linux-26cae166cff9148cd2cab40f64ed548ba1189a8e.tar.bz2 | |
ARM: highbank: remove custom .init_time hook
With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. Highbank clock provider need a reference
to system registers, as a workaround current clk driver maps those
independent of arch code now.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-highbank')
| -rw-r--r-- | arch/arm/mach-highbank/highbank.c | 23 | 
1 files changed, 7 insertions, 16 deletions
| diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 8e63ccdb0de3..e6d6eacea9d0 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c @@ -24,7 +24,6 @@  #include <linux/of_platform.h>  #include <linux/of_address.h>  #include <linux/amba/bus.h> -#include <linux/clk-provider.h>  #include <asm/cacheflush.h>  #include <asm/cputype.h> @@ -83,20 +82,6 @@ static void __init highbank_init_irq(void)  	}  } -static void __init highbank_timer_init(void) -{ -	struct device_node *np; - -	/* Map system registers */ -	np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs"); -	sregs_base = of_iomap(np, 0); -	WARN_ON(!sregs_base); - -	of_clk_init(NULL); - -	clocksource_of_init(); -} -  static void highbank_power_off(void)  {  	highbank_set_pwr_shutdown(); @@ -155,6 +140,13 @@ static struct notifier_block highbank_platform_nb = {  static void __init highbank_init(void)  { +	struct device_node *np; + +	/* Map system registers */ +	np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs"); +	sregs_base = of_iomap(np, 0); +	WARN_ON(!sregs_base); +  	pm_power_off = highbank_power_off;  	highbank_pm_init(); @@ -176,7 +168,6 @@ DT_MACHINE_START(HIGHBANK, "Highbank")  #endif  	.smp		= smp_ops(highbank_smp_ops),  	.init_irq	= highbank_init_irq, -	.init_time	= highbank_timer_init,  	.init_machine	= highbank_init,  	.dt_compat	= highbank_match,  	.restart	= highbank_restart, |