From patchwork Mon Oct 27 12:32:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5160031 Return-Path: X-Original-To: patchwork-linux-input@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 739E4C11AC for ; Mon, 27 Oct 2014 12:32:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD5C32027D for ; Mon, 27 Oct 2014 12:32:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65907201C8 for ; Mon, 27 Oct 2014 12:32:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751586AbaJ0Mcm (ORCPT ); Mon, 27 Oct 2014 08:32:42 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:38604 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbaJ0Mcl (ORCPT ); Mon, 27 Oct 2014 08:32:41 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NE3000GWS6GHF40@mailout1.samsung.com> for linux-input@vger.kernel.org; Mon, 27 Oct 2014 21:32:40 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 5D.4F.18167.76B3E445; Mon, 27 Oct 2014 21:32:39 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-97-544e3b673486 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 10.D5.20081.76B3E445; Mon, 27 Oct 2014 21:32:39 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NE3000XZS6FA530@mmp2.samsung.com>; Mon, 27 Oct 2014 21:32:39 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: linux-input@vger.kernel.org, 'Jingoo Han' , 'Viresh Kumar' Subject: [PATCH] Input: spear-keyboard - Add CONFIG_PM_SLEEP to suspend/resume functions Date: Mon, 27 Oct 2014 21:32:58 +0900 Message-id: <000801cff1e2$2427ba40$6c772ec0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/x4iPDNfaDvJTkThWGyG6F3NqZsw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRmVeSWpSXmKPExsVy+t8zI910a78Qg48PbSwOL3rBaHF54SVW i5ufvrFabPzq4cDisXPWXXaPO9f2sHn0bVnF6PF5k1wASxSXTUpqTmZZapG+XQJXxvYJX1kL LnBWnJw4j6mBcSlHFyMHh4SAicTcZe5djJxAppjEhXvr2boYuTiEBJYxSux8d5EFImEicbOn E8wWEpjOKLG9Qwyi6BejROvUC8wgCTYBNYkvXw6zgwwVETCUmLGmCiTMLJAvcfrKJ3YQW1gg SuLM411g5SwCqhLPGzeCxXkFbCU+X25ngbAFJX5MvscC0aslsX7ncSYIW15i85q3zBA3q0s8 +qsLEhYR0JM4smsnVLmIxL4X7xhBTpMQWMcucWjhKahdAhLfJh9igeiVldh0gBniLUmJgytu sExgFJuFZPMsJJtnIdk8C8mKBYwsqxhFUwuSC4qT0otM9IoTc4tL89L1kvNzNzFC4mvCDsZ7 B6wPMQpwMCrx8E4o9g0RYk0sK67MPcRoCnTRRGYp0eR8YBTnlcQbGpsZWZiamBobmVua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zeeokDs4ofqexNKXhSvWvNlSIpcVHTBO/vVp6WSizFGYmG WsxFxYkAtgi3kPUCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 CONFIG_PM_SLEEP to suspend/resume functions Add CONFIG_PM_SLEEP to suspend/resume functions instead of CONFIG_PM to fix the following build warning when CONFIG_PM_SLEEP is not selected and CONFIG_PM is selected. This is because sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/input/keyboard/spear-keyboard.c:292:12: warning: 'spear_kbd_suspend' defined but not used [-Wunused-function] drivers/input/keyboard/spear-keyboard.c:345:12: warning: 'spear_kbd_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/keyboard/spear-keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index 258af10..fc93e79 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c @@ -288,7 +288,7 @@ static int spear_kbd_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int spear_kbd_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev);