From patchwork Sat Mar 29 10:00:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3908231 Return-Path: X-Original-To: patchwork-linux-fbdev@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 305889F2B6 for ; Sat, 29 Mar 2014 10:00:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5615320253 for ; Sat, 29 Mar 2014 10:00:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74B522034E for ; Sat, 29 Mar 2014 10:00:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbaC2KAb (ORCPT ); Sat, 29 Mar 2014 06:00:31 -0400 Received: from smtp50.i.mail.ru ([94.100.177.110]:58584 "EHLO smtp50.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbaC2KAa (ORCPT ); Sat, 29 Mar 2014 06:00:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=A/DEhSpzOIVv+CR+1ihuNWm29YqXc2aoJCUe96/jeDw=; b=Cvj0baEQT2KnhxbNl6onJbrXFkIkAqP5mV008i873PO5CB/ISplOhv9CkZmrsN5yW50DCqSUgshSBKmukrpEySzwnBkt7EjQZse4AZiIt2vFnv2xRuvukI64Khr1VC5xQ7vwD78HO4XWGMgurpy57BZXEIb99f9AnFCfoqRV1iQ=; Received: from [5.18.98.0] (port=49140 helo=shc.zet) by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1WTq3w-0005PF-O5; Sat, 29 Mar 2014 14:00:28 +0400 From: Alexander Shiyan To: linux-fbdev@vger.kernel.org Cc: Jingoo Han , Bryan Wu , Lee Jones , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Alexander Shiyan Subject: [PATCH 2/2] backlight: platform_lcd: Remove #ifdef CONFIG_PM_SLEEP Date: Sat, 29 Mar 2014 14:00:20 +0400 Message-Id: <1396087220-1564-2-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1396087220-1564-1-git-send-email-shc_work@mail.ru> References: <1396087220-1564-1-git-send-email-shc_work@mail.ru> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 This patch removes #ifdef CONFIG_PM_SLEEP to improve compile coverage. Signed-off-by: Alexander Shiyan --- drivers/video/backlight/platform_lcd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index 4afc21f..986f46a 100644 --- a/drivers/video/backlight/platform_lcd.c +++ b/drivers/video/backlight/platform_lcd.c @@ -110,8 +110,7 @@ static int platform_lcd_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP -static int platform_lcd_suspend(struct device *dev) +static int __maybe_unused platform_lcd_suspend(struct device *dev) { struct platform_lcd *plcd = dev_get_drvdata(dev); @@ -121,7 +120,7 @@ static int platform_lcd_suspend(struct device *dev) return 0; } -static int platform_lcd_resume(struct device *dev) +static int __maybe_unused platform_lcd_resume(struct device *dev) { struct platform_lcd *plcd = dev_get_drvdata(dev); @@ -130,7 +129,6 @@ static int platform_lcd_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend, platform_lcd_resume);