From patchwork Sun Sep 15 09:39:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 275013 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 3606E2C0167 for ; Sun, 15 Sep 2013 19:40:38 +1000 (EST) Received: from wilson.telenet-ops.be (wilson.telenet-ops.be [195.130.132.42]) by ozlabs.org (Postfix) with ESMTP id 2410D2C0141 for ; Sun, 15 Sep 2013 19:40:04 +1000 (EST) Received: from jacques.telenet-ops.be (jacques.telenet-ops.be [195.130.132.50]) by wilson.telenet-ops.be (Postfix) with ESMTP id 4CC1D366AB for ; Sun, 15 Sep 2013 11:40:00 +0200 (CEST) Received: from ayla.of.borg ([84.193.72.141]) by jacques.telenet-ops.be with bizsmtp id RMfv1m00A32ts5g0JMfv6b; Sun, 15 Sep 2013 11:39:56 +0200 Received: from geert by ayla.of.borg with local (Exim 4.76) (envelope-from ) id 1VL8o6-0000qq-WE; Sun, 15 Sep 2013 11:39:55 +0200 From: Geert Uytterhoeven To: Benjamin Herrenschmidt Subject: [PATCH] powerpc: Make add_system_ram_resources() __init Date: Sun, 15 Sep 2013 11:39:36 +0200 Message-Id: <1379237976-3241-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.9.5 Cc: Geert Uytterhoeven , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" add_system_ram_resources() is a subsys_initcall. Signed-off-by: Geert Uytterhoeven --- arch/powerpc/mm/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;