From patchwork Mon Sep 29 06:00:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4993741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 44C2F9F1D4 for ; Mon, 29 Sep 2014 06:05:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B5E2201FA for ; Mon, 29 Sep 2014 06:05:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2295A201B4 for ; Mon, 29 Sep 2014 06:05:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYU1W-0005b7-7u; Mon, 29 Sep 2014 06:01:26 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYU1S-0005XM-U6 for linux-arm-kernel@lists.infradead.org; Mon, 29 Sep 2014 06:01:23 +0000 Received: by mail-pa0-f44.google.com with SMTP id et14so2051295pad.31 for ; Sun, 28 Sep 2014 23:01:01 -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:in-reply-to :references; bh=w4/RXVJoATKD9CWfXx2GRWuFBWJ5wFR7KLKVE7YstBE=; b=UInKSo90o5F2rcMUO1B0oCGHGp1NJ66JTVxx4bhCYcCXhPaJzKMUHiG8l3x1srTU6U TdWroRirzpNDzkKLIQj/J2AbQhzjsaBq5P/BAKyvwMmy0nYMDNoOTexLfh4ElQX7J+Lq 5y3yIgN64cp5BTtLAp5WNmfzPc9qR9PXJi/qGr21VPW1sRp1yEraRGfIEq2/gTS/DYXo KDW8dJO+t1ChRZPmstqvpyPLhDqRbEwvu/ata4K8Wbnmff/BdhJru8fJ8uhDxQ6LuYVJ mpbM7FSxJ7CITxTqDN3zOosGIP3NXUdV2lI9T0zjxfhw1hjDCQX3owbn7Tls6gubKeMf R0ZQ== X-Gm-Message-State: ALoCoQn6oSEm1vslzAkcC8ZaMPRskZXH8qMKJY7svJuYsciKqwl8T5VW2g3VlIYMUMqf38XrOlZK X-Received: by 10.68.135.35 with SMTP id pp3mr10423763pbb.145.1411970461175; Sun, 28 Sep 2014 23:01:01 -0700 (PDT) Received: from localhost.localdomain ([60.168.114.137]) by mx.google.com with ESMTPSA id ig4sm11188630pbb.55.2014.09.28.23.00.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Sep 2014 23:01:00 -0700 (PDT) From: Zhangfei Gao To: Mauro Carvalho Chehab Subject: [PATCH] [media] rc: fix hix5hd2 compile-test issue Date: Mon, 29 Sep 2014 14:00:16 +0800 Message-Id: <1411970416-13110-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411736250-29252-1-git-send-email-zhangfei.gao@linaro.org> References: <1411736250-29252-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140928_230122_998462_6F896C9F X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -0.8 (/) Cc: Zhangfei Gao , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Commit 4c255791ffd6410f ("asm-generic: io: implement relaxed accessor macros as conditional wrappers") adds wrappers to asm-generic of {read,write}{b,w,l,q}_relaxed. Change CONFIG_PM to CONFIG_PM_SLEEP to solve warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used Reported-by: Fengguang Wu Signed-off-by: Zhangfei Gao --- drivers/media/rc/ir-hix5hd2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c index c555ca2aed0e..58ec5986274e 100644 --- a/drivers/media/rc/ir-hix5hd2.c +++ b/drivers/media/rc/ir-hix5hd2.c @@ -16,11 +16,6 @@ #include #include -/* Allow the driver to compile on all architectures */ -#ifndef writel_relaxed -# define writel_relaxed writel -#endif - #define IR_ENABLE 0x00 #define IR_CONFIG 0x04 #define CNT_LEADS 0x08 @@ -294,7 +289,7 @@ static int hix5hd2_ir_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int hix5hd2_ir_suspend(struct device *dev) { struct hix5hd2_ir_priv *priv = dev_get_drvdata(dev);