Skip to contentSkip to conversation

powerpc: Make add_system_ram_resources() __init

PATCH New Geert Uytterhoeven 1 participant 1 message Sep 15, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Make add_system_ram_resources() __init

add_system_ram_resources() is a subsys_initcall.

---
 arch/powerpc/mm/mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/mem.c +1 -1
index 1cf9c5b..25e0f26 100644
@@ -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;
 
Signature · 1 line
1.7.9.5