From patchwork Wed Sep 24 15:10:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4967111 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 76FCFBEEA5 for ; Wed, 24 Sep 2014 15:13:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35141201CD for ; Wed, 24 Sep 2014 15:13:13 +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 79039202A1 for ; Wed, 24 Sep 2014 15:13:07 +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 1XWoDs-0001OA-Oe; Wed, 24 Sep 2014 15:11:16 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWoDq-000143-4z for linux-arm-kernel@lists.infradead.org; Wed, 24 Sep 2014 15:11:14 +0000 Received: by mail-pa0-f50.google.com with SMTP id lj1so454362pab.37 for ; Wed, 24 Sep 2014 08:10:52 -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; bh=tGWMJo8Qj4Kyxpamm5i5JjtS9pc7QWiNkopH65XNIOk=; b=UZc71Uf6gyFihVa2n0DdAboSOnlrr5m33QRZzc4Tbcqu/xI7xd+h1S/4b8tsyTEXxD 4UL5kN4H/xqrhWkRc7+WjUEQ6KtG1q4PMebQENRvKs/elTXl2YzZbSForFPrQBunLCcD 5pNW4ZHURW1XPpHOyFrNYYXpjjbjRqRUL4pxRrJfU4BUKLNzapE6TtEckSzdBx7vpZzv KSKP81kQG1tNktCrIRsPWPAfqJBRMWqxqpLH8x0CxUeapxl5G7R3Ch9BI8kkJPJFYeZr KGYcAGO+b3bG6lyzPiFTTnMLTjSWhDszKbCD3MPgBReh5Qx68Dj19tuL7UdjTXLJEITb G8Mg== X-Gm-Message-State: ALoCoQlpBS7ertD+UFs9Ot4ghqr8IgFkdxTYUhNv2wbvKHrFo9wThgcUrzFGU4kB2KhUeaKFhMEV X-Received: by 10.66.145.133 with SMTP id su5mr10153311pab.11.1411571451759; Wed, 24 Sep 2014 08:10:51 -0700 (PDT) Received: from localhost.localdomain ([124.73.11.148]) by mx.google.com with ESMTPSA id cz1sm15033917pdb.85.2014.09.24.08.10.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Sep 2014 08:10:50 -0700 (PDT) From: Zhangfei Gao To: Mauro Carvalho Chehab , Fengguang Wu Subject: [PATCH] rc: fix hix5hd2 build issue in 0-DAY kernel build Date: Wed, 24 Sep 2014 23:10:01 +0800 Message-Id: <1411571401-30664-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140924_081114_213350_C1E61623 X-CRM114-Status: GOOD ( 13.82 ) X-Spam-Score: -0.7 (/) 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 of ARCH_HIX5HD2 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig index 01e5f7a..ff5a625 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 && ARCH_HIX5HD2 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 64f8257..c1d8527 100644 --- a/drivers/media/rc/ir-hix5hd2.c +++ b/drivers/media/rc/ir-hix5hd2.c @@ -289,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);