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: 4982181 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 439ACBEEA6 for ; Fri, 26 Sep 2014 13:02:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BCF22020E for ; Fri, 26 Sep 2014 13:02:31 +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 7B59D2020F for ; Fri, 26 Sep 2014 13:02:30 +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 1XXV8Y-0001Hg-9f; Fri, 26 Sep 2014 13:00:38 +0000 Received: from mail-pd0-f177.google.com ([209.85.192.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXV8V-0001BJ-Th for linux-arm-kernel@lists.infradead.org; Fri, 26 Sep 2014 13:00:36 +0000 Received: by mail-pd0-f177.google.com with SMTP id v10so10897115pde.8 for ; Fri, 26 Sep 2014 06:00:14 -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=/RNGSeDcwyDqoj8lz6w6+01u44DeynT6ycnKvhwSg/4=; b=PywFeRQFAJKsO0qFhaOKEoeLDQpSUD7TvElbvJQ5dOd3qeCkENgoCVsf56e5cN6fjT K46slS2ipe5uxSKMv4+0SGhmt/nANApuEo3l4M1OBxafsTmWYB4bBPKCUK3vukDwviWe cJAEsbE6RXr9ZvP3lIU33mvJ2M8TpNXXaC4epe7ObOPxpSyJjBKB0/WUWSBo7SyTivur Kydekg+Wex+4gfyK6eFYZe6VqbOlAhRSbTbpB171qNDziFFTbTPvbqPgNTAFXQud3bGr 77m86ede7/dxF7za9wKbzQADqNlgJHpN3kDpVVW6aUODrkNLKA7ci5NUCDkXfkuHcIUg siOQ== X-Gm-Message-State: ALoCoQlnDhdMln1wEBVtbzZ0hOyVEcTGGfYvEjG8Ge5dHa7ps55bCO0KwuQxCeo3TIi3BE8U7oA4 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140926_060035_993312_2A3AE56B X-CRM114-Status: GOOD ( 13.13 ) X-Spam-Score: -0.9 (/) 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.6 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 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);