From patchwork Fri Sep 27 17:16:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2956401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72DB9BFF0B for ; Fri, 27 Sep 2013 17:17:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51C2820278 for ; Fri, 27 Sep 2013 17:17:11 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45BE220274 for ; Fri, 27 Sep 2013 17:17:10 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPbf8-0001V3-Qz; Fri, 27 Sep 2013 17:17:06 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPbf6-0003kh-92; Fri, 27 Sep 2013 17:17:04 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPbf2-0003jZ-TA for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2013 17:17:01 +0000 Received: by mail-wi0-f171.google.com with SMTP id hm2so1155017wib.16 for ; Fri, 27 Sep 2013 10:16:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=D7nyr1BH1fJIS3onqeOko8aeGqGZvdN4UVZhWaJ3yCo=; b=fQZdifAzGAl+n8+c7l0UhzdNhHX6h5E9cfn+1dOft4+lwNeVHVm6iiOJ/cQgZdfqs7 zQKl3dfXRCY98EE1p7MiD7X8kXlXOT8SP/jeFr+jsqfQoLXnr+Fzq9KPx08dxD8m2eAg 5W49RuhZ67sbduAgjz18KMIeD67H7gd4CJcrHOhp431P9j0PXfedUT/RHwLpL4Pb2Zd5 MYtCtebOhF7m14ht1cALrwRdxEB+ALJHNfLv4o/lprawGnVU5DEWk4H7Y9L7H6IgFUL9 LGIx8vwsFkJpQW4gxTUz2NUZITDyG7Q4/F7vmL3nP8ZqLQhXI3d027hczpQKTe6197Le Ncvw== X-Gm-Message-State: ALoCoQnxA3543rWIdtfaSnAI3/kqPYcrIIG15ppPnKDQkLkCf6S5bcpY/XZH6vB2x/itWsO5Apqb X-Received: by 10.194.11.67 with SMTP id o3mr6958998wjb.0.1380302198031; Fri, 27 Sep 2013 10:16:38 -0700 (PDT) Received: from mai.home (AToulouse-654-1-326-179.w86-199.abo.wanadoo.fr. [86.199.213.179]) by mx.google.com with ESMTPSA id b11sm40418088wik.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 10:16:36 -0700 (PDT) From: Daniel Lezcano To: linus.walleij@linaro.org Subject: [PATCH] ARM: ux500: cpuidle: fix section mismatch Date: Fri, 27 Sep 2013 19:16:35 +0200 Message-Id: <1380302195-18678-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130927_131701_088613_B3092EE0 X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: -2.6 (--) Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The dbx500_cpuidle_probe is tagged as an __init section but the variable dbx500_cpuidle_plat_driver is not. The dbx500_cpuidle_probe could not be declared as __init because of macro module_platform_driver builds the exit function, tags as __exit and this one refers to the dbx500_cpuidle_plat_driver which is an __initdata. That leads to a section mismatch. Fix it by removing the __init tag for the probe function. Signed-off-by: Daniel Lezcano Acked-by: Linus Walleij --- drivers/cpuidle/cpuidle-ux500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-ux500.c b/drivers/cpuidle/cpuidle-ux500.c index e056465..5e35804 100644 --- a/drivers/cpuidle/cpuidle-ux500.c +++ b/drivers/cpuidle/cpuidle-ux500.c @@ -111,7 +111,7 @@ static struct cpuidle_driver ux500_idle_driver = { .state_count = 2, }; -static int __init dbx500_cpuidle_probe(struct platform_device *pdev) +static int dbx500_cpuidle_probe(struct platform_device *pdev) { /* Configure wake up reasons */ prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) |