From patchwork Fri Jun 7 01:39:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2683911 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 53B2F3FD4E for ; Fri, 7 Jun 2013 01:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754872Ab3FGBjW (ORCPT ); Thu, 6 Jun 2013 21:39:22 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:27432 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752312Ab3FGBjV (ORCPT ); Thu, 6 Jun 2013 21:39:21 -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 <0MO000LUV1VYE7A0@mailout4.samsung.com>; Fri, 07 Jun 2013 10:39:20 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FD.AE.29708.8C931B15; Fri, 07 Jun 2013 10:39:20 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-bb-51b139c82bf7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C2.00.28381.8C931B15; Fri, 07 Jun 2013 10:39:20 +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 <0MO000H721XKKWG0@mmp2.samsung.com>; Fri, 07 Jun 2013 10:39:20 +0900 (KST) From: Jingoo Han To: 'Andrew Morton' Cc: 'Shuah Khan' , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, shuahkhan@gmail.com, rpurdie@rpsys.net, FlorianSchandinat@gmx.de, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, rafael.j.wysocki@intel.com, 'Arnd Bergmann' , 'Jingoo Han' Subject: [PATCH] backlight: add CONFIG_PM_SLEEP to suspend/resume functions Date: Fri, 07 Jun 2013 10:39:20 +0900 Message-id: <000201ce631f$d4ad0d50$7e0727f0$@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: Ac5jH8VQZVjkEXLOR6aHDdNliT5UcQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsVy+t8zfd0TlhsDDba8ULaYs34Nm8XfScfY LTpnXmO0uLzwEqvFib4PrBaXd81hs1j38AWTxeMVb9ktdu96ymrx5TOXxdefDhbr599ic+Dx +P1rEqPHzll32T0+fIzzWLznJZPHqwt3WDxOzPjN4rFn/g9Wj74tqxg9jt/YzuTxeZNcAFcU l01Kak5mWWqRvl0CV0bvtXfMBXO5KiZf/MnYwPiAo4uRk0NCwETi/bn37BC2mMSFe+vZuhi5 OIQEljFKrO3aywRT1HL2AyNEYjqjxJYbjewQzi9Gib51KxlBqtgE1CS+fDkMlODgEBHQl2hr 0QCpYRbYzSQx68hkJpC4sIC3xLW3FSDlLAKqErs+zGUFsXkFLCVunNnECGELSvyYfI8FxGYW 0JJYv/M4E4QtL7F5zVtmiIMUJHacfQ1WLyKgJ7Gt4TgjRI2IxL4X7xghamZySPw5wQexS0Di 2+RDLCAnSAjISmw6ADVGUuLgihssExjFZiHZPAvJ5llINs9CsmEBI8sqRtHUguSC4qT0IhO9 4sTc4tK8dL3k/NxNjJBYn7CD8d4B60OMyUDrJzJLiSbnA1NFXkm8obGZkYWpiamxkbmlGWnC SuK86i3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Kd5jEWpxcFCjNPtuoqrBVjS29I8qHnf/r4aXh Lxtzs7dzGiU9/Nh22vRsxMZZhyLnB03JO8W9t3xmkiibn4j59KyQl0v3vrfVk159Yq1tXxjv ElsH39/GxgqbzTZtvX3l17JaRyWW4oxEQy3mouJEAJUHVAFpAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following build warning when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/video/backlight/backlight.c:211:12: warning: 'backlight_suspend' defined but not used [-Wunused-function] drivers/video/backlight/backlight.c:225:12: warning: 'backlight_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han Acked-by: Arnd Bergmann --- drivers/video/backlight/backlight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index cedbcbe..750807c 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c @@ -208,6 +208,7 @@ static ssize_t backlight_show_actual_brightness(struct device *dev, static struct class *backlight_class; +#ifdef CONFIG_PM_SLEEP static int backlight_suspend(struct device *dev) { struct backlight_device *bd = to_backlight_device(dev); @@ -235,6 +236,7 @@ static int backlight_resume(struct device *dev) return 0; } +#endif static SIMPLE_DEV_PM_OPS(backlight_class_dev_pm_ops, backlight_suspend, backlight_resume);