From patchwork Mon Mar 25 17:55:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15615 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 BEEB623E2C for ; Mon, 25 Mar 2013 17:55:57 +0000 (UTC) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by fiordland.canonical.com (Postfix) with ESMTP id 7ABF5A19491 for ; Mon, 25 Mar 2013 17:55:57 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id db10so1200632veb.9 for ; Mon, 25 Mar 2013 10:55:57 -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=gBaau20kPBP0dOLP+BzXqNH8FMgv7maLHYwCEM9G9l0=; b=eJolMBP2YrA94jhdQXpICmBvY5FLRfdmjMdupfqvkefnCtW0tfYF425h3midBPtYiV 954oJ3jHUmRX45Ro2MmfSDxjT2kFep0FE4YU2v9oXU1qY2gmeUk/4kPptcOFMwqTp7Ok sJh/8hkXQMNTZkTd7haYz2Oy7YgsghNgjLfXNQwAPFRqKMDcpohk6oVjSevywINxDU62 94LvWlKqjdfwp/rcgwcVAFMy64vTkryzhqj/Rjv2cnpXnrCuL8+g8fP1PBKIRnV2qTQL vZlv6MRe2o48LFHvcETvqIx9u1nTDbp61uVuFt64RJlROGKlYKOz5J6DLF0q0Lt+ArHv uifQ== X-Received: by 10.52.31.103 with SMTP id z7mr14244136vdh.56.1364234156937; Mon, 25 Mar 2013 10:55:56 -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 cg12csp37230ved; Mon, 25 Mar 2013 10:55:56 -0700 (PDT) X-Received: by 10.180.13.197 with SMTP id j5mr19278918wic.21.1364234155973; Mon, 25 Mar 2013 10:55:55 -0700 (PDT) Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by mx.google.com with ESMTPS id lz8si5384555wjb.91.2013.03.25.10.55.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:55:55 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::234 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::234; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::234 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-f180.google.com with SMTP id c10so2397393wiw.1 for ; Mon, 25 Mar 2013 10:55:55 -0700 (PDT) X-Received: by 10.180.36.48 with SMTP id n16mr14447553wij.30.1364234155584; Mon, 25 Mar 2013 10:55:55 -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.55.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:55:54 -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 06/15] ARM: cpuidle: remove useless declaration Date: Mon, 25 Mar 2013 18:55:31 +0100 Message-Id: <1364234140-514-7-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: ALoCoQlFMnhp4CWcI7HClGwJ5RFSl47hCws3dxNE7kRJG7thvtgMVLSoaIY9eUNMTSI8+Pntk5QY The noop functions code is not necessary because the header file is included in files which are compiled when CONFIG_CPU_IDLE is on. Signed-off-by: Daniel Lezcano --- arch/arm/include/asm/cpuidle.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/include/asm/cpuidle.h b/arch/arm/include/asm/cpuidle.h index 2fca60a..7367787 100644 --- a/arch/arm/include/asm/cpuidle.h +++ b/arch/arm/include/asm/cpuidle.h @@ -1,13 +1,8 @@ #ifndef __ASM_ARM_CPUIDLE_H #define __ASM_ARM_CPUIDLE_H -#ifdef CONFIG_CPU_IDLE extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, - struct cpuidle_driver *drv, int index); -#else -static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, - struct cpuidle_driver *drv, int index) { return -ENODEV; } -#endif + struct cpuidle_driver *drv, int index); /* Common ARM WFI state */ #define ARM_CPUIDLE_WFI_STATE_PWR(p) {\