aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear/spear13xx.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-12-02 11:59:57 -0500
committerArnd Bergmann <arnd@arndb.de>2013-03-12 12:39:58 -0400
commitd9909ebe650f028459b9be5a2321fee520b446b0 (patch)
tree09736f1e19ed89396841a2654e4d8b901ac73334 /arch/arm/mach-spear/spear13xx.c
parent2b9c613c4ee1756664fcbf6fc4926fee3e7139c3 (diff)
ARM: spear: make clock driver independent of headers
Device drivers should not access MMIO registers through hardcoded platform specific address constants. Instead, we can pass the MMIO token to the spear clock driver in the initialization routine to contain that knowledge in the platform code itself. Ideally, the clock driver would use of_iomap() or similar to get the address, and that can be used later, but for now, this is the minimal change. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/arm/mach-spear/spear13xx.c')
-rw-r--r--arch/arm/mach-spear/spear13xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-spear/spear13xx.c b/arch/arm/mach-spear/spear13xx.c
index 6f62dd59daf6..1b97e8623472 100644
--- a/arch/arm/mach-spear/spear13xx.c
+++ b/arch/arm/mach-spear/spear13xx.c
@@ -146,9 +146,9 @@ void __init spear13xx_map_io(void)
146static void __init spear13xx_clk_init(void) 146static void __init spear13xx_clk_init(void)
147{ 147{
148 if (of_machine_is_compatible("st,spear1310")) 148 if (of_machine_is_compatible("st,spear1310"))
149 spear1310_clk_init(); 149 spear1310_clk_init(VA_MISC_BASE, VA_SPEAR1310_RAS_BASE);
150 else if (of_machine_is_compatible("st,spear1340")) 150 else if (of_machine_is_compatible("st,spear1340"))
151 spear1340_clk_init(); 151 spear1340_clk_init(VA_MISC_BASE);
152 else 152 else
153 pr_err("%s: Unknown machine\n", __func__); 153 pr_err("%s: Unknown machine\n", __func__);
154} 154}