From patchwork Sun Dec 12 18:35:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 401422 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 oBCIYpsS021306 for ; Sun, 12 Dec 2010 18:34:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839Ab0LLSev (ORCPT ); Sun, 12 Dec 2010 13:34:51 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:51183 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753774Ab0LLSev (ORCPT ); Sun, 12 Dec 2010 13:34:51 -0500 Received: from localhost.localdomain (unknown [87.66.45.201]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D011335C96; Sun, 12 Dec 2010 18:34:49 +0000 (UTC) From: Laurent Pinchart To: linux-omap@vger.kernel.org Cc: eballetbo@gmail.com Subject: [PATCH 2/2] omap3: igepv2: LED gpio-led:green:d1 is active low Date: Sun, 12 Dec 2010 19:35:38 +0100 Message-Id: <1292178938-9819-2-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <1292178894-9749-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1292178894-9749-1-git-send-email-laurent.pinchart@ideasonboard.com> 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]); Sun, 12 Dec 2010 18:34:52 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 20b88c1..41a4b25 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -317,6 +317,7 @@ static struct gpio_led igep2_gpio_leds[] = { .name = "gpio-led:green:d1", .default_trigger = "heartbeat", .gpio = -EINVAL, /* gets replaced */ + .active_low = 1, }, }; @@ -394,7 +395,7 @@ static int igep2_twl_gpio_setup(struct device *dev, /* TWL4030_GPIO_MAX + 1 == ledB (out, active low LED) */ #if !defined(CONFIG_LEDS_GPIO) && !defined(CONFIG_LEDS_GPIO_MODULE) if ((gpio_request(gpio+TWL4030_GPIO_MAX+1, "gpio-led:green:d1") == 0) - && (gpio_direction_output(gpio + TWL4030_GPIO_MAX + 1, 0) == 0)) + && (gpio_direction_output(gpio + TWL4030_GPIO_MAX + 1, 1) == 0)) gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); else pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_GREEN\n");