Skip to content

Commit

Permalink
prom_free_prom_memory() returns unsigned long
Browse files Browse the repository at this point in the history
    
    Some boards declare prom_free_prom_memory as a void function but the
    caller free_initmem() expects a return value.
    
    Fix those up and return 0 instead, just like everyone else does.
    
    Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Arthur Othieno authored and Ralf Baechle committed Oct 29, 2005
1 parent 4b724ef commit 5ef6693
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arch/mips/momentum/jaguar_atx/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ void __init prom_init(void)
#endif
}

void __init prom_free_prom_memory(void)
unsigned long __init prom_free_prom_memory(void)
{
return 0;
}

void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/momentum/ocelot_3/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ void __init prom_init(void)
#endif
}

void __init prom_free_prom_memory(void)
unsigned long __init prom_free_prom_memory(void)
{
return 0;
}

void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/pmc-sierra/yosemite/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ void __init prom_init(void)
prom_grab_secondary();
}

void __init prom_free_prom_memory(void)
unsigned long __init prom_free_prom_memory(void)
{
return 0;
}

void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
Expand Down

0 comments on commit 5ef6693

Please sign in to comment.