From patchwork Wed Apr 3 12:15:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15855 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F280523E21 for ; Wed, 3 Apr 2013 12:15:32 +0000 (UTC) Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by fiordland.canonical.com (Postfix) with ESMTP id 7E002A1866B for ; Wed, 3 Apr 2013 12:15:32 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id f43sf2139469yha.9 for ; Wed, 03 Apr 2013 05:15:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=msiNiSSo6Crb7jWAL/eTnOcxhk67tusSkT3tZvCqZVk=; b=BGoKj3mXz+8bwY99/Z9iXctbKRwzcAxMjxVR7RfoYxAyEYs+lG0QimsC1zTt72IHbR Eawx+Vzo/hh+9G7vvE1LkPAYk4TI89l6p3GJGsmGrk5rG3e6VQly1CstLlDiGF4Kqtfv eZy6iFO1z6mhlt6YAFoyjYcYBDxgIJzzPfyKcf2J62yXIJr8BzpS5/UBo4o7vDBrhdiX 3+iwZiaKLD5pYOymSs0U922iEuLwSCyWcbB1MsojzvorEnsjIOLdDqT4hlE1et5c8U5x 2dygOki6wQpL/9hyAp+2jPhRHP1CUI9wPwK4Ig+Ux8c8fy3mEJAcLh/Dj+z3rxS7dV/9 HHVA== X-Received: by 10.224.157.1 with SMTP id z1mr996366qaw.8.1364991332042; Wed, 03 Apr 2013 05:15:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.225 with SMTP id o1ls766585qev.90.gmail; Wed, 03 Apr 2013 05:15:31 -0700 (PDT) X-Received: by 10.220.19.8 with SMTP id y8mr986232vca.31.1364991331849; Wed, 03 Apr 2013 05:15:31 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id l8si4632891vdw.150.2013.04.03.05.15.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:31 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::229; Received: by mail-vb0-f41.google.com with SMTP id f13so385137vbg.28 for ; Wed, 03 Apr 2013 05:15:31 -0700 (PDT) X-Received: by 10.58.220.129 with SMTP id pw1mr974285vec.32.1364991331469; Wed, 03 Apr 2013 05:15:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp167599ved; Wed, 3 Apr 2013 05:15:30 -0700 (PDT) X-Received: by 10.180.36.48 with SMTP id n16mr22352389wij.30.1364991330197; Wed, 03 Apr 2013 05:15:30 -0700 (PDT) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by mx.google.com with ESMTPS id j6si2365011wjn.170.2013.04.03.05.15.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:30 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.44 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.44; Received: by mail-wg0-f44.google.com with SMTP id z12so1522067wgg.35 for ; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) X-Received: by 10.180.11.148 with SMTP id q20mr4271951wib.18.1364991329805; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:29 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 2/9] ARM: shmobile: pm: fix init sections Date: Wed, 3 Apr 2013 14:15:15 +0200 Message-Id: <1364991322-20585-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> References: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlOJH+ofj9Ht+3nE4EyIVyWDB+E+Yn8LNE48Cpg78vBQ72Ry3AG9ydaOz/PrujT5f8dNVX2 X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add the __init section for the functions which are called at init time. Signed-off-by: Daniel Lezcano Acked-by: Simon Horman --- arch/arm/mach-shmobile/cpuidle.c | 4 ++-- arch/arm/mach-shmobile/pm-sh7372.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/cpuidle.c b/arch/arm/mach-shmobile/cpuidle.c index 9e05026..068f9ca 100644 --- a/arch/arm/mach-shmobile/cpuidle.c +++ b/arch/arm/mach-shmobile/cpuidle.c @@ -36,12 +36,12 @@ static struct cpuidle_driver shmobile_cpuidle_default_driver = { static struct cpuidle_driver *cpuidle_drv = &shmobile_cpuidle_default_driver; -void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv) +void __init shmobile_cpuidle_set_driver(struct cpuidle_driver *drv) { cpuidle_drv = drv; } -int shmobile_cpuidle_init(void) +int __init shmobile_cpuidle_init(void) { struct cpuidle_device *dev = &shmobile_cpuidle_dev; diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index a0826a4..f6b14ca 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c @@ -450,12 +450,12 @@ static struct cpuidle_driver sh7372_cpuidle_driver = { }, }; -static void sh7372_cpuidle_init(void) +static void __init sh7372_cpuidle_init(void) { shmobile_cpuidle_set_driver(&sh7372_cpuidle_driver); } #else -static void sh7372_cpuidle_init(void) {} +static void __init sh7372_cpuidle_init(void) {} #endif #ifdef CONFIG_SUSPEND