Skip to content

Commit

Permalink
MIPS: mark prom_free_prom_memory() everywhere with __init
Browse files Browse the repository at this point in the history
On OCTEON the function is non-trivial and we can potentially even save
some memory.

Signed-off-by: Aaro Koskinen <[email protected]>
Acked-by: David Daney <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9338/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
aakoskin authored and ralfbaechle committed Apr 1, 2015
1 parent f45e388 commit aa816c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/mips/cavium-octeon/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/lantiq/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mti-sead3/sead3-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ void __init prom_init(void)
#endif
}

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

0 comments on commit aa816c1

Please sign in to comment.