diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-12-02 17:59:57 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-03-12 17:39:58 +0100 |
commit | d9909ebe650f028459b9be5a2321fee520b446b0 (patch) | |
tree | 09736f1e19ed89396841a2654e4d8b901ac73334 /arch/arm/mach-spear/spear1310.c | |
parent | 2b9c613c4ee1756664fcbf6fc4926fee3e7139c3 (diff) | |
download | blackbird-obmc-linux-d9909ebe650f028459b9be5a2321fee520b446b0.tar.gz blackbird-obmc-linux-d9909ebe650f028459b9be5a2321fee520b446b0.zip |
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/spear1310.c')
-rw-r--r-- | arch/arm/mach-spear/spear1310.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-spear/spear1310.c b/arch/arm/mach-spear/spear1310.c index fe868b20b46e..ed3b5c287a7b 100644 --- a/arch/arm/mach-spear/spear1310.c +++ b/arch/arm/mach-spear/spear1310.c @@ -30,8 +30,6 @@ #define SPEAR1310_RAS_GRP1_BASE UL(0xD8000000) #define VA_SPEAR1310_RAS_GRP1_BASE UL(0xFA000000) -#define SPEAR1310_RAS_BASE UL(0xD8400000) -#define VA_SPEAR1310_RAS_BASE IOMEM(UL(0xFA400000)) static struct arasan_cf_pdata cf_pdata = { .cf_if_clk = CF_IF_CLK_166M, |