Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa816c1b authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Ralf Baechle
Browse files

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: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9338/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f45e388f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1049,7 +1049,7 @@ int prom_putchar(char c)
}
}
EXPORT_SYMBOL(prom_putchar);
EXPORT_SYMBOL(prom_putchar);


void prom_free_prom_memory(void)
void __init prom_free_prom_memory(void)
{
{
	if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) {
	if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) {
		/* Check for presence of Core-14449 fix.  */
		/* Check for presence of Core-14449 fix.  */
+1 −1
Original line number Original line Diff line number Diff line
@@ -41,7 +41,7 @@ int ltq_soc_type(void)
	return soc_info.type;
	return soc_info.type;
}
}


void prom_free_prom_memory(void)
void __init prom_free_prom_memory(void)
{
{
}
}


+1 −1
Original line number Original line Diff line number Diff line
@@ -147,6 +147,6 @@ void __init prom_init(void)
#endif
#endif
}
}


void prom_free_prom_memory(void)
void __init prom_free_prom_memory(void)
{
{
}
}