From patchwork Sun Oct 28 15:35:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1657841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D2A69DFE76 for ; Sun, 28 Oct 2012 15:38:51 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSUur-0004Ci-Jc; Sun, 28 Oct 2012 15:36:45 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TSUuT-0004Aq-JR for linux-arm-kernel@lists.infradead.org; Sun, 28 Oct 2012 15:36:22 +0000 Received: by mail-lb0-f177.google.com with SMTP id gi11so2481296lbb.36 for ; Sun, 28 Oct 2012 08:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=e1JhIKg/8K023du8jYJZdM/Z9t1WnQ28/WILP0VPwlU=; b=f2Gi21sV6Aqefu4rpu1aiZ7YuFkCyyKBYFM+GHJsSxaoJgeV6sxkvi2dDAtEfzIN2o nHjqvbMfEHgGVg6hqyKIpOB6TwPSaajA13F7gPFS0RNx9ppKJpnfZ0NW89AwzJyjYyBq OY8muPqusl3lYcbod6NbND6r1Ad1O1BLT9svoFsjbyRxNz1QEYY7hBznmyZNFrmMV7Cf +/UMInUuoXkaDTQEB9NtTS631rDlGf5NabdNS8cWghAPXxFExJHLkgQbwk4+dCqgpZCE ltjjDyhJgQp9tyOgrFf85DWlChQgzpPaeHhkqrLp5SF+q/sN6lyQ0n06t1LT48q6A+PS FwPQ== Received: by 10.112.29.129 with SMTP id k1mr11012355lbh.102.1351438579631; Sun, 28 Oct 2012 08:36:19 -0700 (PDT) Received: from localhost.localdomain ([80.249.90.60]) by mx.google.com with ESMTPS id ft3sm2276824lbb.1.2012.10.28.08.36.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 08:36:18 -0700 (PDT) From: Vasily Khoruzhick To: Eric Miao , Russell King , Haojian Zhuang , Marek Vasut , linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: PXA: Zipit Z2: Fix oops in z2_power_off Date: Sun, 28 Oct 2012 18:35:53 +0300 Message-Id: <1351438555-4668-3-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1351438555-4668-1-git-send-email-anarsoul@gmail.com> References: <1351438555-4668-1-git-send-email-anarsoul@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anarsoul[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] Cc: Vasily Khoruzhick X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org pxa27x_set_pwrmode is called from z2_power_off, so it shouldn't be marked with __init. Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-pxa/pxa27x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 8047ee0..88ff275 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c @@ -242,7 +242,7 @@ static struct clk_lookup pxa27x_clkregs[] = { */ static unsigned int pwrmode = PWRMODE_SLEEP; -int __init pxa27x_set_pwrmode(unsigned int mode) +int pxa27x_set_pwrmode(unsigned int mode) { switch (mode) { case PWRMODE_SLEEP: