diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-01-15 09:59:30 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-01-16 12:08:42 -0500 |
commit | 0be0b8cd49f22037096ad41b831a93dd8d0d4f87 (patch) | |
tree | 8eec93647303982c984b2dc129474d4a7ee8a809 /arch/arm/mach-at91/setup.c | |
parent | 84fb0dc7c8abc2ea34496cdb32493bd8f7665dac (diff) |
ARM: at91: remove unused at91_init_sram
SRAM initialization is now done through the mmio-sram driver and
at91_init_sram() is not called anymore, remove it.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/setup.c')
-rw-r--r-- | arch/arm/mach-at91/setup.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index e3c21b458bb8..4c184285d38f 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -34,26 +34,6 @@ EXPORT_SYMBOL(at91_soc_initdata); | |||
34 | void __iomem *at91_ramc_base[2]; | 34 | void __iomem *at91_ramc_base[2]; |
35 | EXPORT_SYMBOL_GPL(at91_ramc_base); | 35 | EXPORT_SYMBOL_GPL(at91_ramc_base); |
36 | 36 | ||
37 | static struct map_desc sram_desc[2] __initdata; | ||
38 | |||
39 | void __init at91_init_sram(int bank, unsigned long base, unsigned int length) | ||
40 | { | ||
41 | struct map_desc *desc = &sram_desc[bank]; | ||
42 | |||
43 | desc->virtual = (unsigned long)AT91_IO_VIRT_BASE - length; | ||
44 | if (bank > 0) | ||
45 | desc->virtual -= sram_desc[bank - 1].length; | ||
46 | |||
47 | desc->pfn = __phys_to_pfn(base); | ||
48 | desc->length = length; | ||
49 | desc->type = MT_MEMORY_RWX_NONCACHED; | ||
50 | |||
51 | pr_info("sram at 0x%lx of 0x%x mapped at 0x%lx\n", | ||
52 | base, length, desc->virtual); | ||
53 | |||
54 | iotable_init(desc, 1); | ||
55 | } | ||
56 | |||
57 | static struct map_desc at91_io_desc __initdata __maybe_unused = { | 37 | static struct map_desc at91_io_desc __initdata __maybe_unused = { |
58 | .virtual = (unsigned long)AT91_VA_BASE_SYS, | 38 | .virtual = (unsigned long)AT91_VA_BASE_SYS, |
59 | .pfn = __phys_to_pfn(AT91_BASE_SYS), | 39 | .pfn = __phys_to_pfn(AT91_BASE_SYS), |