From patchwork Fri Oct 10 06:53:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 5063881 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 EF9AFC11AC for ; Fri, 10 Oct 2014 06:54:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D2B92022D for ; Fri, 10 Oct 2014 06:54:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 684EB20222 for ; Fri, 10 Oct 2014 06:54:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbaJJGyZ (ORCPT ); Fri, 10 Oct 2014 02:54:25 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35102 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbaJJGyY (ORCPT ); Fri, 10 Oct 2014 02:54:24 -0400 Received: by mail-pa0-f47.google.com with SMTP id rd3so1174992pab.20 for ; Thu, 09 Oct 2014 23:54:24 -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=g12cDL2NkwKUiqwfFTuGlhPkjPnZ0eB9rwYEt9vJkj0=; b=C1VEdRayLGA4UEqaId7IUksZgoOApnQDJC6nhkkh06PL/R9HJTtQHvu/NvHSsv35am fOpsmIGnqG4nxuIYHaDKJM8Oq+onnWatoQhYApp/5/uYvPUGkIHpPku0FWygxidB3qmK vhT/9UEG8OPgGtKgEZeKNPTs6ApFomsGHf6QvgZUp72iqWJ9ohxZ47ALIaFG05Lb0AsY AHa54bL+I6MZbBMZN96m4ES6v1FCccSQJhN/tGlC4qtxhx9q3VcG90L8rDxD7OK4ckeG ifSunLeNctcwH35Tzw9T3DsDlya62aSgnmCVZdI8O5pbze1aqH+yGp9lc/ah4x8C921b JocQ== X-Gm-Message-State: ALoCoQml5iINWYmdSWYOCivRAOnPLCHi/naBRD215EbSNFq4oqiE2Y2VbbcBP9hZ9njRnFuUlB2o X-Received: by 10.70.53.103 with SMTP id a7mr3179487pdp.34.1412924064452; Thu, 09 Oct 2014 23:54:24 -0700 (PDT) Received: from localhost.localdomain ([114.97.107.159]) by mx.google.com with ESMTPSA id ig4sm2400728pbb.55.2014.10.09.23.54.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Oct 2014 23:54:23 -0700 (PDT) From: Zhangfei Gao To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, Zhangfei Gao Subject: [PATCH] [media] ir-hix5hd2 fix build warning Date: Fri, 10 Oct 2014 14:53:47 +0800 Message-Id: <1412924027-18997-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 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.9 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 Change CONFIG_PM to CONFIG_PM_SLEEP to solve warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used Signed-off-by: Zhangfei Gao --- drivers/media/rc/ir-hix5hd2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c index c555ca2aed0e..455d1b53c9db 100644 --- a/drivers/media/rc/ir-hix5hd2.c +++ b/drivers/media/rc/ir-hix5hd2.c @@ -294,7 +294,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);