From patchwork Mon Sep 23 21:41:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 2930611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DFB2D9F2B8 for ; Mon, 23 Sep 2013 21:50:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F6352012D for ; Mon, 23 Sep 2013 21:50:49 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A97C2010A for ; Mon, 23 Sep 2013 21:50:48 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOE1f-0001cz-Uy; Mon, 23 Sep 2013 21:50:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOE1X-0003w5-Ex; Mon, 23 Sep 2013 21:50:31 +0000 Received: from mail-bk0-x232.google.com ([2a00:1450:4008:c01::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOE1U-0003uq-Gf for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2013 21:50:29 +0000 Received: by mail-bk0-f50.google.com with SMTP id mz11so1376577bkb.23 for ; Mon, 23 Sep 2013 14:50:06 -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:in-reply-to:references; bh=yhDP78UAKSOpmn0hOCiuCeUhEbyUems/Rf/VMvxCSvs=; b=TXI4OXmIW8XoGxqs671QMot6sCWFLvB0NG/JaFPSVZWykxwgpONZgqrz9JopJnhvaZ ejle9yd+/vmEfhudOuvWd4Uw5D7TdPpy3dVSHBTWbOb8+rzhUb776VXLfg5NYYi9gzRT Ji12AqpUUR3hoZ+1edKtz2qjULknx9PRz4zMDHD0RFJwvOE1sfYfMm/hFEWFYDMMkHXn V/Mq6oo84Lzg2eqL65LXNs8Yl+A6CtaMbI4am9QVvBWr7mEZQdvKdN/rz7ie1NXWNYKz bA2YjIfrqV5c5T0g4dnqv3IeSJ2NfRsr3xoLR8Qo/0OVUgAabJXFVkmzQcgDeUnj9kzC txsg== X-Received: by 10.204.228.10 with SMTP id jc10mr6353969bkb.26.1379972562616; Mon, 23 Sep 2013 14:42:42 -0700 (PDT) Received: from localhost (port-13639.pppoe.wtnet.de. [84.46.53.124]) by mx.google.com with ESMTPSA id pk7sm9651753bkb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Sep 2013 14:42:41 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 06/10] ARM: shmobile: Initialize PWM backlight enable_gpio field Date: Mon, 23 Sep 2013 23:41:03 +0200 Message-Id: <1379972467-11243-7-git-send-email-treding@nvidia.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1379972467-11243-1-git-send-email-treding@nvidia.com> References: <1379972467-11243-1-git-send-email-treding@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130923_175028_697274_96E1E79E X-CRM114-Status: GOOD ( 11.54 ) X-Spam-Score: 1.4 (+) Cc: Mark Rutland , devicetree@vger.kernel.org, Kukjin Kim , Eric Miao , Pawel Moll , Ian Campbell , Tony Lindgren , Stephen Warren , Magnus Damm , linux-kernel@vger.kernel.org, Rob Herring , linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, Simon Horman , linux-pwm@vger.kernel.org, Haojian Zhuang , Ben Dooks , linux-sh@vger.kernel.org, openezx-devel@lists.openezx.org, Guan Xuetao , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The GPIO API defines 0 as being a valid GPIO number, so this field needs to be initialized explicitly. Signed-off-by: Thierry Reding Acked-by: Simon Horman --- arch/arm/mach-shmobile/board-armadillo800eva.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 7f8f607..6ccb854 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -423,6 +423,7 @@ static struct platform_pwm_backlight_data pwm_backlight_data = { .max_brightness = 255, .dft_brightness = 255, .pwm_period_ns = 33333, /* 30kHz */ + .enable_gpio = -1, }; static struct platform_device pwm_backlight_device = {