From patchwork Tue Dec 21 07:47:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Morsing X-Patchwork-Id: 423781 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 oBL7mDgd013258 for ; Tue, 21 Dec 2010 07:48:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753726Ab0LUHrw (ORCPT ); Tue, 21 Dec 2010 02:47:52 -0500 Received: from mail-fx0-f43.google.com ([209.85.161.43]:46578 "EHLO mail-fx0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836Ab0LUHrv (ORCPT ); Tue, 21 Dec 2010 02:47:51 -0500 Received: by fxm18 with SMTP id 18so3992903fxm.2 for ; Mon, 20 Dec 2010 23:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=HoR4sPWJXOwistxmA2UjMTM66DiOnulapCp0i+4nXBc=; b=v+IuN2CYctJziQQSYfxSlqdaRaUqypQ9wxd3b4/TZVPm66bd0oFnrFpdRG3aEFTHBM +8HdARS3JIMBjJnJ09X2LPqv33PJ2Va/QPkySnnWhrMx43kDj39O484gf0+XSz9Y5GsJ mfLLzZkrj/c8uOgiGhMH/6shCVfJ4yxggI74U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=Edi8IOJS47TZifuhCFBH1ngrZ03Wy1PSgTaypEWN9HFqhM0rfcFyIX+AOGwNrvW3aa jR8sSRlfTH1qJ++JBk9kPDFeJfY+JF8cCHn2Nm+crQF9irxCihtM1O5YbxK542yxjbDD rxsCut8iWQZ/MYREi+1e8siL3sNPadSl8xgFI= MIME-Version: 1.0 Received: by 10.223.89.136 with SMTP id e8mr5772693fam.5.1292917669791; Mon, 20 Dec 2010 23:47:49 -0800 (PST) Received: by 10.223.71.135 with HTTP; Mon, 20 Dec 2010 23:47:49 -0800 (PST) Date: Tue, 21 Dec 2010 08:47:49 +0100 Message-ID: Subject: [PATCH] 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 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 07:48:14 +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); }