ARM: spear: make clock driver independent of headers
authorArnd Bergmann <arnd@arndb.de>
Sun, 2 Dec 2012 16:59:57 +0000 (17:59 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 12 Mar 2013 16:39:58 +0000 (17:39 +0100)
commitd9909ebe650f028459b9be5a2321fee520b446b0
tree09736f1e19ed89396841a2654e4d8b901ac73334
parent2b9c613c4ee1756664fcbf6fc4926fee3e7139c3
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>
12 files changed:
arch/arm/mach-spear/generic.h
arch/arm/mach-spear/include/mach/misc_regs.h
arch/arm/mach-spear/include/mach/spear.h
arch/arm/mach-spear/spear1310.c
arch/arm/mach-spear/spear13xx.c
arch/arm/mach-spear/spear320.c
arch/arm/mach-spear/spear3xx.c
arch/arm/mach-spear/spear6xx.c
drivers/clk/spear/spear1310_clock.c
drivers/clk/spear/spear1340_clock.c
drivers/clk/spear/spear3xx_clock.c
drivers/clk/spear/spear6xx_clock.c