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: 4993731 Return-Path: X-Original-To: patchwork-linux-media@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 B71F7BEEA6 for ; Mon, 29 Sep 2014 06:01:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA4EF201B4 for ; Mon, 29 Sep 2014 06:01:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 668AB20120 for ; Mon, 29 Sep 2014 06:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037AbaI2GBD (ORCPT ); Mon, 29 Sep 2014 02:01:03 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36070 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbaI2GBC (ORCPT ); Mon, 29 Sep 2014 02:01:02 -0400 Received: by mail-pa0-f41.google.com with SMTP id eu11so1475055pac.0 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=mdPaK71u7ybtpvJW7pOk/FBey5N9MB2OZ4xBD2Xzcpd3G6LXA8KDR5Vfx46W9ThhkP i4VE+/d/+EAeOzyQ7rC5ZhwvNHFuDSleFZNe9BJGjINTbPSNN0t1DYK+5F9ad4nbr4xh z9eZHxeEqSewTFvCzSVPOYx50eJfKfezR69jBSxVcsm5o0+JAcUaG82xp342JNvI4ENM bR/vDznEZ5dCfbWSLfhgk7QgjcP3W8H64QGJDgBOuvctXiARtpMhlFOz4rfwJ3BsVbNt IwaLLYYCTZwDPDQ5VMFnnRb6WQy+uwP9tqZVaGih4ovgGw2tKzw3h8uJfp3umu4diMqD z0kg== X-Gm-Message-State: ALoCoQmQMIJWpa1F7KX1wV6jhi2A/eycgEYTXEE0p0fhTTtqrtuhHj2I9aF6MEgjF9HwmL/kJOy5 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 Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, Zhangfei Gao 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> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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);