diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-02-25 18:31:04 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 11:21:58 -0400 |
commit | aa816c1b390aacb698dd6faf5a8cbffb5123c03a (patch) | |
tree | 494c52e10326d3bd17d9c7e03ca3fd19e03ec256 | |
parent | f45e388ff0f90b922b77bef959a2cfb0645cffbe (diff) |
MIPS: mark prom_free_prom_memory() everywhere with __init
On OCTEON the function is non-trivial and we can potentially even save
some memory.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9338/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/cavium-octeon/setup.c | 2 | ||||
-rw-r--r-- | arch/mips/lantiq/prom.c | 2 | ||||
-rw-r--r-- | arch/mips/mti-sead3/sead3-init.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 73348afa4b80..89a628455bc2 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c | |||
@@ -1049,7 +1049,7 @@ int prom_putchar(char c) | |||
1049 | } | 1049 | } |
1050 | EXPORT_SYMBOL(prom_putchar); | 1050 | EXPORT_SYMBOL(prom_putchar); |
1051 | 1051 | ||
1052 | void prom_free_prom_memory(void) | 1052 | void __init prom_free_prom_memory(void) |
1053 | { | 1053 | { |
1054 | if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) { | 1054 | if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) { |
1055 | /* Check for presence of Core-14449 fix. */ | 1055 | /* Check for presence of Core-14449 fix. */ |
diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c index 39ab3e786e59..0db099ecc016 100644 --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c | |||
@@ -41,7 +41,7 @@ int ltq_soc_type(void) | |||
41 | return soc_info.type; | 41 | return soc_info.type; |
42 | } | 42 | } |
43 | 43 | ||
44 | void prom_free_prom_memory(void) | 44 | void __init prom_free_prom_memory(void) |
45 | { | 45 | { |
46 | } | 46 | } |
47 | 47 | ||
diff --git a/arch/mips/mti-sead3/sead3-init.c b/arch/mips/mti-sead3/sead3-init.c index bfbd17b120a2..3572ea30173e 100644 --- a/arch/mips/mti-sead3/sead3-init.c +++ b/arch/mips/mti-sead3/sead3-init.c | |||
@@ -147,6 +147,6 @@ void __init prom_init(void) | |||
147 | #endif | 147 | #endif |
148 | } | 148 | } |
149 | 149 | ||
150 | void prom_free_prom_memory(void) | 150 | void __init prom_free_prom_memory(void) |
151 | { | 151 | { |
152 | } | 152 | } |