From patchwork Fri Sep 26 12:57:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 37964 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 06D51202DB for ; Fri, 26 Sep 2014 13:00:21 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf5999417eek.9 for ; Fri, 26 Sep 2014 06:00:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=l8lrcal9zGVM3i8W5BwjtaHi6Qb3uz6+6rhAHY7jbVc=; b=ONm2jwKiw9FPukm4qnX0u9yCH+WRmBVjZQkm2B3ASMQG9MwD4PuJPzllbAEhfUP0jv P68WoTSuL10CRwiM+eG0Eqxc56yunXhIGR1vk4otlQy4niAyXPbiVV05CuxmH7DfvrXk NzswnYZMuWt5GWgbg2WeN3UEaIpagnFkMRh7FrznoEqgE19SRpe/H8sJ2OPS8DihHMZm CcAgJfNOQKNIUTpL/jZVbEt9fKpjrAVHtL/TcaZWFpUEXUrv+oMRI2y8K6GUlcISfskd o5w4rND+6dMpYX8o2KWIjNDVoWsogD5BDsYQKClEkKnCvztopPlaL70+3hHIijAoYZuc 98AQ== X-Gm-Message-State: ALoCoQnn99ZMK0yKHuHvxCtWBjMoawRjWTpgFPE3DXkWaakXQSi1VICvHBCx5lHnULOQX8DcWhHa X-Received: by 10.112.76.229 with SMTP id n5mr3111714lbw.8.1411736421148; Fri, 26 Sep 2014 06:00:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.39 with SMTP id y7ls396625lag.0.gmail; Fri, 26 Sep 2014 06:00:20 -0700 (PDT) X-Received: by 10.112.62.200 with SMTP id a8mr19050479lbs.34.1411736420970; Fri, 26 Sep 2014 06:00:20 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id zk2si7129524lbb.51.2014.09.26.06.00.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 06:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id w7so8635718lbi.6 for ; Fri, 26 Sep 2014 06:00:20 -0700 (PDT) X-Received: by 10.152.42.136 with SMTP id o8mr20091097lal.71.1411736420703; Fri, 26 Sep 2014 06:00:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp56167lbb; Fri, 26 Sep 2014 06:00:19 -0700 (PDT) X-Received: by 10.70.40.229 with SMTP id a5mr41215007pdl.17.1411736419148; Fri, 26 Sep 2014 06:00:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fm5si8997810pbd.234.2014.09.26.06.00.18 for ; Fri, 26 Sep 2014 06:00:19 -0700 (PDT) Received-SPF: none (google.com: linux-media-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754111AbaIZNAQ (ORCPT + 2 others); Fri, 26 Sep 2014 09:00:16 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:43518 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753984AbaIZNAP (ORCPT ); Fri, 26 Sep 2014 09:00:15 -0400 Received: by mail-pa0-f41.google.com with SMTP id fa1so4753860pad.0 for ; Fri, 26 Sep 2014 06:00:14 -0700 (PDT) X-Received: by 10.68.235.105 with SMTP id ul9mr31194397pbc.3.1411736414830; Fri, 26 Sep 2014 06:00:14 -0700 (PDT) Received: from localhost.localdomain ([60.168.115.49]) by mx.google.com with ESMTPSA id qa1sm4922202pbb.29.2014.09.26.06.00.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 06:00:13 -0700 (PDT) From: Zhangfei Gao To: m.chehab@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, Zhangfei Gao Subject: [PATCH] [media] rc: fix hix5hd2 compile-test issue Date: Fri, 26 Sep 2014 20:57:30 +0800 Message-Id: <1411736250-29252-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411571401-30664-1-git-send-email-zhangfei.gao@linaro.org> References: <1411571401-30664-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add dependence to solve build error in arch like ia64 error: implicit declaration of function 'readl_relaxed' & 'writel_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/Kconfig | 2 +- drivers/media/rc/ir-hix5hd2.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig index 8ce08107a69d..28fb2cb34e8d 100644 --- a/drivers/media/rc/Kconfig +++ b/drivers/media/rc/Kconfig @@ -166,7 +166,7 @@ config IR_ENE config IR_HIX5HD2 tristate "Hisilicon hix5hd2 IR remote control" - depends on RC_CORE + depends on RC_CORE && ARM help Say Y here if you want to use hisilicon hix5hd2 remote control. To compile this driver as a module, choose M here: the module will be diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c index 94967d0e0478..c1d8527ace92 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);