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: 38062 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F3E8202DB for ; Mon, 29 Sep 2014 06:01:19 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id hi2sf1887374wib.3 for ; Sun, 28 Sep 2014 23:01:18 -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=+/FmdsuFiinfzdYs8K3aEX71mHvCQKTjLO/9e02481g=; b=GbvoK0LEhDptzf1CQrmofWBw5lLAY1XaoLdeJIHUDdzcbzyYFKsegfQVufp9ja1gwG xB6dnp02HHWvRXBHuyvtFlY09S6nv4jxnnr8CbITZ58pxH4+x9oRUqHiONFL9eYzeAMu geC7BQGRfzDN6p1EzdMlEUaDHK294xJTAHI3WNzez89EX9r0hoNJ1ml7ptMBGnlvmshX R6i5L7rrWCHRWjY7l/5lF6IU1OiWl/2tiBIc+3nzU8QzoEIrg4OsvivYM6/62rRSmOU3 1qF6PVZjxzSVGZD4zCPm2XxtqaNjSZ3gxKnA7yz8b0z7e7TDUjjLotDMtRcD5fgFn/+4 4jhA== X-Gm-Message-State: ALoCoQlEkER0PwgqPbMdrVvK78OeRV1TXYXIrhYRgJoH9k7UaM0KvyrfHi/AaeDJiz1Cus3tEdn3 X-Received: by 10.180.188.145 with SMTP id ga17mr1371658wic.3.1411970478569; Sun, 28 Sep 2014 23:01:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.129 with SMTP id o1ls555709lal.75.gmail; Sun, 28 Sep 2014 23:01:18 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr37664544lab.76.1411970478154; Sun, 28 Sep 2014 23:01:18 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx.google.com with ESMTPS id b9si17077438laa.24.2014.09.28.23.01.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Sep 2014 23:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id w7so481406lbi.9 for ; Sun, 28 Sep 2014 23:01:18 -0700 (PDT) X-Received: by 10.112.134.229 with SMTP id pn5mr9120300lbb.22.1411970478082; Sun, 28 Sep 2014 23:01:18 -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 of9csp122023lbb; Sun, 28 Sep 2014 23:01:17 -0700 (PDT) X-Received: by 10.68.239.202 with SMTP id vu10mr42487775pbc.109.1411970476466; Sun, 28 Sep 2014 23:01:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id aa5si21233016pbd.181.2014.09.28.23.01.15 for ; Sun, 28 Sep 2014 23:01:16 -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 S1751037AbaI2GBD (ORCPT + 2 others); 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-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: 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.178 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: , 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);