Skip to content

Commit

Permalink
powerpc: Make add_system_ram_resources() __init
Browse files Browse the repository at this point in the history
add_system_ram_resources() is a subsys_initcall.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Geert Uytterhoeven authored and Benjamin Herrenschmidt committed Jan 15, 2014
1 parent 5906b0a commit 4f77092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
* System memory should not be in /proc/iomem but various tools expect it
* (eg kdump).
*/
static int add_system_ram_resources(void)
static int __init add_system_ram_resources(void)
{
struct memblock_region *reg;

Expand Down

0 comments on commit 4f77092

Please sign in to comment.