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: 1818711 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9DB79DFABE for ; Wed, 28 Nov 2012 21:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756169Ab2K1Vsh (ORCPT ); Wed, 28 Nov 2012 16:48:37 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:47825 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755752Ab2K1Vsg (ORCPT ); Wed, 28 Nov 2012 16:48:36 -0500 Received: by mail-ee0-f46.google.com with SMTP id e53so6036184eek.19 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 Cc: linux@arm.linux.org.uk, FlorianSchandinat@gmx.de, linux-fbdev@vger.kernel.org, Marko Katic 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 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.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();