From patchwork Mon Mar 25 17:55:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15622 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 C440123E2C for ; Mon, 25 Mar 2013 17:56:17 +0000 (UTC) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by fiordland.canonical.com (Postfix) with ESMTP id 7D32DA194BE for ; Mon, 25 Mar 2013 17:56:17 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id da11so5235983veb.10 for ; Mon, 25 Mar 2013 10:56:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=qVr1BNneCQvof80DW48RXqzIPNjVexYC2ubVCmzsMz4=; b=jbbFrNPXr+2KOALQlXX0RL5oDRH39vw0obVAPz3XRirNeOoYh4tDZpi1NP8Sod5uK7 wzJHg3Le3zen9uc7l3qaInLsaV6kUHvfL2Jy4IewSkxF2m5OW2NaO3wTXSIqEzF63nt7 VdSaq3zND2atdNK6lrW+tP2LU5lCS/vO7DcGEaYbsiFWwtKjp9phc/9pJXnvpDv9ssSz ih5glL1Q953wmjGjXGd8ZlcaZM26PKu5oqpeRR1slYpshRnMP3RKmhuJFxH+zcE9EpVC 4Y+GozcFmW/hoKAJO4fafwaDehm9Gnnd0xtLgNy27MiFvdgzfB4VVPsSuBwC+ticopGU ICbg== X-Received: by 10.52.20.239 with SMTP id q15mr14390392vde.73.1364234177028; Mon, 25 Mar 2013 10:56:17 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp37251ved; Mon, 25 Mar 2013 10:56:16 -0700 (PDT) X-Received: by 10.194.158.161 with SMTP id wv1mr19825710wjb.38.1364234176009; Mon, 25 Mar 2013 10:56:16 -0700 (PDT) Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by mx.google.com with ESMTPS id j2si5377253wiv.83.2013.03.25.10.56.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:56:16 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::22c is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::22c; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::22c is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wi0-f172.google.com with SMTP id hr17so3327546wib.17 for ; Mon, 25 Mar 2013 10:56:15 -0700 (PDT) X-Received: by 10.180.72.165 with SMTP id e5mr1937611wiv.7.1364234174732; Mon, 25 Mar 2013 10:56:14 -0700 (PDT) Received: from mai.home (AToulouse-654-1-426-131.w2-6.abo.wanadoo.fr. [2.6.209.131]) by mx.google.com with ESMTPS id s2sm23927749wib.4.2013.03.25.10.56.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:56:14 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, tglx@linutronix.de Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux@maxim.org.za, nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, lenb@kernel.org, nsekhar@ti.com, kevin.hilman@linaro.org, horms@verge.net.au, magnus.damm@gmail.com, kernel@pengutronix.de, ben-linux@fluff.org, kgene.kim@samsung.com, rob.herring@calxeda.com, jason@lakedaemon.net, andrew@lunn.ch, linus.walleij@linaro.org, linux@arm.linux.org.uk Subject: [PATCH 13/15] ARM: shmobile: pm: fix init sections Date: Mon, 25 Mar 2013 18:55:38 +0100 Message-Id: <1364234140-514-14-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> References: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlaMc/S//n9ApwZkYUYmdJA0eqePrBQ9pLAcERR4roZ2Jx0naZmEFUZIx+SFCx9bfzdQJGK 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