From patchwork Wed Nov 28 21:46:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dromede@gmail.com X-Patchwork-Id: 1818851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id CF0FBDF2F9 for ; Wed, 28 Nov 2012 21:51:15 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TdpUm-0001hV-Dk; Wed, 28 Nov 2012 21:48:40 +0000 Received: from mail-ea0-f177.google.com ([209.85.215.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TdpUi-0001gf-SK for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2012 21:48:37 +0000 Received: by mail-ea0-f177.google.com with SMTP id c10so3655547eaa.36 for ; Wed, 28 Nov 2012 13:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=8Sc98ZIpGXErhk3UuxtcJ4P6U/bg0JgXXvdFfRsGuzg=; b=oPzZv6uL1yDpgnJGPDwKuyzVeMB9uuC7qmwmt+EJzdVm5MVNg4KkrjHP9jJEiShGr3 uERExXE0kSgau5EisODYUn4SVQAIEqhexySMf1liCQGNLfNLH5wjQzHZcfEVZDXj3WJm 6C0knygXJlUGMSe+/Qn4S5szuaP1pbwQS+44TcMQNnYHFnXQEd+bSM/akLDz2zsbLnPJ GoYT0iTpgMBShW/8x/PmEDiL72+S9wK0NlT9/JiswlOEjknMVg/NChG1AtQ2/XVFXc0S cuCzSRdHq8ISZ/OeR2JWvadB1g5wKGD/luFTMi2GSAufjh50p8d0JVSlrNhdT2oiIXhT PS8Q== Received: by 10.14.205.198 with SMTP id j46mr74354967eeo.27.1354139314795; Wed, 28 Nov 2012 13:48:34 -0800 (PST) Received: from localhost.localdomain (93-142-246-232.adsl.net.t-com.hr. [93.142.246.232]) by mx.google.com with ESMTPS id e1sm49693180eem.3.2012.11.28.13.48.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 13:48:34 -0800 (PST) From: dromede@gmail.com To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] backlight: corgi_lcd: Fix WARN_ON() when calling corgi_bl_set_intensity. Date: Wed, 28 Nov 2012 22:46:41 +0100 Message-Id: <1354139201-12834-1-git-send-email-dromede@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121128_164837_055922_8D20392C X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dromede[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Marko Katic , linux-fbdev@vger.kernel.org, linux@arm.linux.org.uk, FlorianSchandinat@gmx.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Marko Katic Signed-off-by: Marko Katic --- drivers/video/backlight/corgi_lcd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/corgi_lcd.c b/drivers/video/backlight/corgi_lcd.c index c781768..8b002d7 100644 --- a/drivers/video/backlight/corgi_lcd.c +++ b/drivers/video/backlight/corgi_lcd.c @@ -409,10 +409,10 @@ static int corgi_bl_set_intensity(struct corgi_lcd *lcd, int intensity) cont = !!(intensity & 0x20) ^ lcd->gpio_backlight_cont_inverted; if (gpio_is_valid(lcd->gpio_backlight_cont)) - gpio_set_value(lcd->gpio_backlight_cont, cont); + gpio_set_value_cansleep(lcd->gpio_backlight_cont, cont); if (gpio_is_valid(lcd->gpio_backlight_on)) - gpio_set_value(lcd->gpio_backlight_on, intensity); + gpio_set_value_cansleep(lcd->gpio_backlight_on, intensity); if (lcd->kick_battery) lcd->kick_battery();