From patchwork Fri Mar 29 10:31:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15760 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 7C0CF23DEE for ; Fri, 29 Mar 2013 10:31:43 +0000 (UTC) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by fiordland.canonical.com (Postfix) with ESMTP id 34676A18D03 for ; Fri, 29 Mar 2013 10:31:43 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id ox1so398081veb.21 for ; Fri, 29 Mar 2013 03:31:42 -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=msiNiSSo6Crb7jWAL/eTnOcxhk67tusSkT3tZvCqZVk=; b=N3ZFX66ZdSKuL0RpOMiuS/ctLMCYqZ3qPTkjvMzUN3oZUq/VjliqF4KkYn8QNsPNTL UVISbbSDqlduARpoyUWdEIzKGqp9QHDKEHiR//r4+IiK27dKp4EvQ3usOfpe/84gPN4v RyknZ24I4T+4gf3xW8+cCBaA3FWt4ZevQ99bR8ZKifUUYrM40bFxOi498DT/ErEEil5U myiggd7q19z3W6WU1zUHXsW5O8SNefpj4vBFvSeh+2tpHGOqnPr9rp2uuZBlpNDWZ7ca RoPOwRGdrw/VR3zrO013fA1K2FfgNvYVELUUkgNjdkyrLiJ3wUXHR7HeOgQXH/hCJYsE JTJA== X-Received: by 10.220.153.143 with SMTP id k15mr1393931vcw.33.1364553102702; Fri, 29 Mar 2013 03:31:42 -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 cg12csp54138ved; Fri, 29 Mar 2013 03:31:42 -0700 (PDT) X-Received: by 10.194.119.200 with SMTP id kw8mr2740864wjb.31.1364553101731; Fri, 29 Mar 2013 03:31:41 -0700 (PDT) Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]) by mx.google.com with ESMTPS id le5si873200wjb.219.2013.03.29.03.31.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:41 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::233 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::233; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::233 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-we0-f179.google.com with SMTP id p43so261245wea.24 for ; Fri, 29 Mar 2013 03:31:41 -0700 (PDT) X-Received: by 10.180.37.166 with SMTP id z6mr21528590wij.34.1364553101241; Fri, 29 Mar 2013 03:31:41 -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 q13sm2472076wie.0.2013.03.29.03.31.38 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:40 -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 Subject: [PATCH 2/9] ARM: shmobile: pm: fix init sections Date: Fri, 29 Mar 2013 11:31:28 +0100 Message-Id: <1364553095-25110-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> References: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlh58dwi5Lh9x4Pmr/z+UoDIaik6D/DVckoPdkaqr+DzRNJAWqGSM5mEWt/owvUFRC2zgBl 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