From patchwork Thu Aug 23 21:14:15 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: 1368981 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 DF74DDF2AB for ; Thu, 23 Aug 2012 21:17:38 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4ejV-0005zn-4G; Thu, 23 Aug 2012 21:14:29 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4ejQ-0005zZ-Kh for linux-arm-kernel@lists.infradead.org; Thu, 23 Aug 2012 21:14:25 +0000 Received: by wibhm2 with SMTP id hm2so979854wib.0 for ; Thu, 23 Aug 2012 14:14:21 -0700 (PDT) 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=r6eZJ1JhWPcO48luWYNKEmKi+vZvvUvV/3n7WYYl/BM=; b=CtbV4jnohwCg4MxEPCM6j53UNs4nkP0doJwc6xkdRNClThkaPXpPv8prFZ2ntUk7gd BaJZlEoyj+aLAF4yl0KSVuxVRZkQ8hxLRLznCc714iIrWJdiU9UuxqfaHXQNuYAyBfSC 8V5lsnmm8Y/1seLqu2COzqvgmtLwAu/fCmOTyS0bm00dtV+n1JUawyc/riYJfhFmNfZx H61QWR1kcFTPtgb5Rce2ZMzO/V/lxUXe2VrwtSAfIdvOp7QUjX7sGsvI2arELopBR9TN a8mUnpn7sDkl0iGZElNycDeX7186q8/J2KQbt/q1XfSHPp0X2zYs+vNHNUIu11jjoW8w bsIg== Received: by 10.180.86.133 with SMTP id p5mr7140802wiz.17.1345756461293; Thu, 23 Aug 2012 14:14:21 -0700 (PDT) Received: from localhost.localdomain (93-139-172-250.adsl.net.t-com.hr. [93.139.172.250]) by mx.google.com with ESMTPS id dc3sm638664wib.7.2012.08.23.14.14.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 14:14:20 -0700 (PDT) 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: Thu, 23 Aug 2012 23:14:15 +0200 Message-Id: <1345756455-27503-1-git-send-email-dromede@gmail.com> X-Mailer: git-send-email 1.7.4.1 X-Spam-Note: CRM114 invocation failed 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dromede[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.169 listed in list.dnswl.org] -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: rpurdie@rpsys.net 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();