MIPS: mark prom_free_prom_memory() everywhere with __init
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 25 Feb 2015 23:31:04 +0000 (01:31 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:58 +0000 (17:21 +0200)
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>
arch/mips/cavium-octeon/setup.c
arch/mips/lantiq/prom.c
arch/mips/mti-sead3/sead3-init.c

index 73348afa4b8014fc13d7cee0ba630e5a84e103cc..89a628455bc253b01c2cc7b9f3cc2a6d9a426493 100644 (file)
@@ -1049,7 +1049,7 @@ int prom_putchar(char c)
 }
 EXPORT_SYMBOL(prom_putchar);
 
-void prom_free_prom_memory(void)
+void __init prom_free_prom_memory(void)
 {
        if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) {
                /* Check for presence of Core-14449 fix.  */
index 39ab3e786e59980df96adc3a1f25155c5bf24cb3..0db099ecc01648cca11a69cddcaab31c8c0a099e 100644 (file)
@@ -41,7 +41,7 @@ int ltq_soc_type(void)
        return soc_info.type;
 }
 
-void prom_free_prom_memory(void)
+void __init prom_free_prom_memory(void)
 {
 }
 
index bfbd17b120a21d637888a65db614df206de41043..3572ea30173ef0e42932866effc0e1b720466b32 100644 (file)
@@ -147,6 +147,6 @@ void __init prom_init(void)
 #endif
 }
 
-void prom_free_prom_memory(void)
+void __init prom_free_prom_memory(void)
 {
 }