diff mbox

powerpc: Make add_system_ram_resources() __init

Message ID 1379237976-3241-1-git-send-email-geert@linux-m68k.org (mailing list archive)
State Accepted, archived
Commit 4f7709248db7402507a2a5164f86ad4c75a1926b
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Geert Uytterhoeven Sept. 15, 2013, 9:39 a.m. UTC
add_system_ram_resources() is a subsys_initcall.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/powerpc/mm/mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 1cf9c5b..25e0f26 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -498,7 +498,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;