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>
This commit is contained in:
Aaro Koskinen 2015-02-26 01:31:04 +02:00 committed by Ralf Baechle
parent f45e388ff0
commit aa816c1b39
3 changed files with 3 additions and 3 deletions

View 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. */

View 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)
{
}

View File

@ -147,6 +147,6 @@ void __init prom_init(void)
#endif
}
void prom_free_prom_memory(void)
void __init prom_free_prom_memory(void)
{
}