From patchwork Mon Aug 5 06:57:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2838553 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 9CAA99F3B9 for ; Mon, 5 Aug 2013 06:57:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F3A8D2017A for ; Mon, 5 Aug 2013 06:57:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9404220165 for ; Mon, 5 Aug 2013 06:57:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754318Ab3HEG5E (ORCPT ); Mon, 5 Aug 2013 02:57:04 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:45712 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754287Ab3HEG5D (ORCPT ); Mon, 5 Aug 2013 02:57:03 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MR1001PZPXJTXC0@mailout4.samsung.com> for linux-input@vger.kernel.org; Mon, 05 Aug 2013 15:57:02 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id EE.C8.29708.EBC4FF15; Mon, 05 Aug 2013 15:57:02 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-57-51ff4cbe2370 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C7.5A.32250.DBC4FF15; Mon, 05 Aug 2013 15:57:01 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MR1000ZFPZ1B500@mmp2.samsung.com>; Mon, 05 Aug 2013 15:57:01 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, Jingoo Han Subject: [PATCH 4/4] Input: pwm-beeper: add CONFIG_PM_SLEEP to suspend/resume Date: Mon, 05 Aug 2013 15:57:01 +0900 Message-id: <001a01ce91a8$fc8b8ba0$f5a2a2e0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac6RqPo2cQjer7DNQcudjmkClLDzTw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsVy+t8zY919Pv8DDe7NZbY4vOgFo8XD7S9Y LS4vvMRqcfPTN1YHFo+ds+6ye0yZe4TVo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDLmHf3O XrCRo+LAmvXsDYzT2bsYOTkkBEwkPm3dwQhhi0lcuLeerYuRi0NIYBmjxO7Df5hginp+nGEF sYUEpjNKPL4bClH0i1HiVM9FFpAEm4CaxJcvh4GmcnCICBhKzFhTBRJmFkiVaDz8hg3EFhbw lTj6ahnYHBYBVYnzly+CzecVsJT4PH8dC4QtKPFj8j0WiF4tic3bmlghbHmJzWveMkPcoyCx 4+xrRohVehL3uxUgSkQk9r14xwhymoTAJnaJh3/nsUPsEpD4NvkQC0i9hICsxKYDUGMkJQ6u uMEygVFsFpLNs5BsnoVk8ywkKxYwsqxiFE0tSC4oTkovMtErTswtLs1L10vOz93ECImxCTsY 7x2wPsSYDLR+IrOUaHI+MEbzSuINjc2MLExNTI2NzC3NS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W5ES8U7hsoPVjW2XppVmSIaCdz6aOyZfHPrx26tojl2NTsFiWW 4oxEQy3mouJEAEbPxPckAwAA 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=-6.9 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 to fix the build warnings when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/input/misc/pwm-beeper.c:147:12: warning: 'pwm_beeper_suspend' defined but not used [-Wunused-function] drivers/input/misc/pwm-beeper.c:157:12: warning: 'pwm_beeper_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/misc/pwm-beeper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index a37f0c9..2ff4d1c 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -143,7 +143,7 @@ static int pwm_beeper_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int pwm_beeper_suspend(struct device *dev) { struct pwm_beeper *beeper = dev_get_drvdata(dev);