From patchwork Tue Dec 21 10:23:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Morsing X-Patchwork-Id: 424101 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBLANNBK029731 for ; Tue, 21 Dec 2010 10:23:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933670Ab0LUKXI (ORCPT ); Tue, 21 Dec 2010 05:23:08 -0500 Received: from mail-ey0-f171.google.com ([209.85.215.171]:33332 "EHLO mail-ey0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933556Ab0LUKXH (ORCPT ); Tue, 21 Dec 2010 05:23:07 -0500 Received: by eyg5 with SMTP id 5so1959454eyg.2 for ; Tue, 21 Dec 2010 02:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=jtCBtupJ8dRSCchqcyPwW+g5a6gzDN+ojlVwyImNiEc=; b=YkHk/LqxxQtuQTcWsyIrsooUS+bluFxC2sXo4xeWmr+OWTGOiYufYENdIYmch7CE4G 7b484WvOQIR806fuY8+KvjJ7vaAUjsGNrpu6rble0kqT8b2Y5JbUWNLMe2j8CLKpkqxv 2AA9C8eN+PJN8xkAAJAxhsaPX3yTLFbFEjfAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=xglAEWujNA97otDtq28VLZ/uRSUBxyzvGzhzmPOwcTJIUt4Dpf5Q1pDmt0j9xGHjZD t0t1hj5akUpXUI0YOe8L9niPTZva1i7uPXU8dRef3WbsI4LrldiZhtQ68w3tJ4yv6DcQ J8AW/+4BhlBIEjaCMEjiclqz09bTLJy2yzydw= Received: by 10.213.105.72 with SMTP id s8mr4736381ebo.37.1292926985392; Tue, 21 Dec 2010 02:23:05 -0800 (PST) Received: from [192.168.0.137] ([84.238.81.146]) by mx.google.com with ESMTPS id u1sm3658599eeh.16.2010.12.21.02.23.04 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 02:23:05 -0800 (PST) Subject: [PATCH v2] OMAP2: Devkit8000: Use _cansleep GPIO functions for display reset lines From: Daniel Morsing To: tony@atomide.com Cc: daniel.morsing@gmail.com, weber@corscience.de, linux@arm.linux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 21 Dec 2010 11:23:13 +0100 Message-ID: <1292926993.9611.10.camel@morsing> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 (2.32.1-1.fc14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 10:23:24 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 53ac762..f1f58f5 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c @@ -118,27 +118,27 @@ static int devkit8000_panel_enable_lcd(struct omap_dss_device *dssdev) twl_i2c_write_u8(TWL4030_MODULE_LED, 0x0, 0x0); if (gpio_is_valid(dssdev->reset_gpio)) - gpio_set_value(dssdev->reset_gpio, 1); + gpio_set_value_cansleep(dssdev->reset_gpio, 1); return 0; } static void devkit8000_panel_disable_lcd(struct omap_dss_device *dssdev) { if (gpio_is_valid(dssdev->reset_gpio)) - gpio_set_value(dssdev->reset_gpio, 0); + gpio_set_value_cansleep(dssdev->reset_gpio, 0); } static int devkit8000_panel_enable_dvi(struct omap_dss_device *dssdev) { if (gpio_is_valid(dssdev->reset_gpio)) - gpio_set_value(dssdev->reset_gpio, 1); + gpio_set_value_cansleep(dssdev->reset_gpio, 1); return 0; } static void devkit8000_panel_disable_dvi(struct omap_dss_device *dssdev) { if (gpio_is_valid(dssdev->reset_gpio)) - gpio_set_value(dssdev->reset_gpio, 0); + gpio_set_value_cansleep(dssdev->reset_gpio, 0); } static struct regulator_consumer_supply devkit8000_vmmc1_supply =