From patchwork Wed Jun 11 19:03:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4338051 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A4BA89F314 for ; Wed, 11 Jun 2014 19:03:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7CCB2028D for ; Wed, 11 Jun 2014 19:03:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EDDE32025B for ; Wed, 11 Jun 2014 19:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751800AbaFKTDY (ORCPT ); Wed, 11 Jun 2014 15:03:24 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:47634 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbaFKTDY (ORCPT ); Wed, 11 Jun 2014 15:03:24 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so187068wes.15 for ; Wed, 11 Jun 2014 12:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=/PGnYDyKIyWe6uhamMqz0CUANxGYQHnxM95qMVMWGzw=; b=BaV8RbmW9NbklkRb4xZH3YHJDEURWDFAPr+ZoIMey3582lGPu9SK0wJc1ifnCa8Oc9 4n7/k0e3hHAW6e1Z9SbCYAq7abJahyiiJUKuOQ9zFFRPN6lbc5M00dTuWybKidpsDx1t m5ypoWdFVYcQZCazo2y+XPIFiJQkt4//35e203TbGWueN5FcL9iM/ArK3cZhxCmfCZmT It2qrfSCvRfuk88uFyh2VuL4YBrfd6U2cuv6bXEk8Qjq/sdb2Gwxp1VbQoCAnWR7z4z3 RUkDNFkXGx6hi/K0IyNa6JgIvBY+4OPcZzlqXlo/AymdFb90nz/veflN+DqBCTqKWsCr Rozw== X-Received: by 10.194.80.161 with SMTP id s1mr54896135wjx.47.1402513402598; Wed, 11 Jun 2014 12:03:22 -0700 (PDT) Received: from ramsan.of.borg (d54c1488d.access.telenet.be. [84.193.72.141]) by mx.google.com with ESMTPSA id m1sm21377985eep.24.2014.06.11.12.03.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jun 2014 12:03:22 -0700 (PDT) From: Geert Uytterhoeven To: Jiri Kosina Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] HID: rmi: Protect PM-only functions by #ifdef CONFIG_PM Date: Wed, 11 Jun 2014 21:03:18 +0200 Message-Id: <1402513398-17546-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 If CONFIG_PM=n: drivers/hid/hid-rmi.c:432: warning: ‘rmi_post_reset’ defined but not used drivers/hid/hid-rmi.c:437: warning: ‘rmi_post_resume’ defined but not used Signed-off-by: Geert Uytterhoeven --- drivers/hid/hid-rmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid-rmi.c index 2451c7e5febd..578bbe65902b 100644 --- a/drivers/hid/hid-rmi.c +++ b/drivers/hid/hid-rmi.c @@ -428,6 +428,7 @@ static int rmi_raw_event(struct hid_device *hdev, return 0; } +#ifdef CONFIG_PM static int rmi_post_reset(struct hid_device *hdev) { return rmi_set_mode(hdev, RMI_MODE_ATTN_REPORTS); @@ -437,6 +438,7 @@ static int rmi_post_resume(struct hid_device *hdev) { return rmi_set_mode(hdev, RMI_MODE_ATTN_REPORTS); } +#endif /* CONFIG_PM */ #define RMI4_MAX_PAGE 0xff #define RMI4_PAGE_SIZE 0x0100