瀏覽代碼

powerpc: Make add_system_ram_resources() __init

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>
Geert Uytterhoeven 12 年之前
父節點
當前提交
4f7709248d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/mm/mem.c

+ 1 - 1
arch/powerpc/mm/mem.c

@@ -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;