From patchwork Mon Sep 23 21:41:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 2930261 Return-Path: X-Original-To: patchwork-linux-sh@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 CE57D9F2B8 for ; Mon, 23 Sep 2013 21:43:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E4132038C for ; Mon, 23 Sep 2013 21:43:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 215CB2038B for ; Mon, 23 Sep 2013 21:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754431Ab3IWVmu (ORCPT ); Mon, 23 Sep 2013 17:42:50 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:57054 "EHLO mail-bk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754319Ab3IWVmq (ORCPT ); Mon, 23 Sep 2013 17:42:46 -0400 Received: by mail-bk0-f44.google.com with SMTP id mz10so1410137bkb.31 for ; Mon, 23 Sep 2013 14:42:44 -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=LDgMQe7e+Qptd8GU9vJ7ckU6MDCnOzaQa8vUKivPnXQ=; b=MHb89tebYPTAlnu14JgsXIj7SG2Cq2pFM7I8eXz4cwXmQf/UZk5HRiHNMmQ/NROHdL 8SMHavbzThnfTWfTiid45+OjWjcjIpuF2ph8+a9Sqfg6FwTRnxYNpzOyjG1punmrJmWW GWmMk+AtxeoKWTmQVpO8MbnEUc9u56My+oEUA0zTQOP7CQm2h7eVVafstMVITMg5r4ug 7F5MW2klUQtgg39j8Sym1TkRELUXyrtzHlMw2m2UGQMNtgSsCa39b3VauvBLIHf7PSNf dFFmAEMsbu7cWR67mH4AG34t4UnrC8yY6t8GfZYNe337CxCKlb1tneve3RNYFXiwVEhW W+pw== X-Received: by 10.204.69.12 with SMTP id x12mr19237561bki.12.1379972564710; Mon, 23 Sep 2013 14:42:44 -0700 (PDT) Received: from localhost (port-13639.pppoe.wtnet.de. [84.46.53.124]) by mx.google.com with ESMTPSA id zl3sm9649998bkb.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Sep 2013 14:42:44 -0700 (PDT) From: Thierry Reding To: Thierry Reding Cc: Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Tony Lindgren , Eric Miao , Haojian Zhuang , Ben Dooks , Kukjin Kim , Simon Horman , Magnus Damm , Guan Xuetao , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, openezx-devel@lists.openezx.org, linux-samsung-soc@vger.kernel.org, linux-sh@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] unicore32: Initialize PWM backlight enable_gpio field Date: Mon, 23 Sep 2013 23:41:04 +0200 Message-Id: <1379972467-11243-8-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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, 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 --- arch/unicore32/kernel/puv3-nb0916.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/kernel/puv3-nb0916.c b/arch/unicore32/kernel/puv3-nb0916.c index 181108b..0c6618e 100644 --- a/arch/unicore32/kernel/puv3-nb0916.c +++ b/arch/unicore32/kernel/puv3-nb0916.c @@ -54,6 +54,7 @@ static struct platform_pwm_backlight_data nb0916_backlight_data = { .max_brightness = 100, .dft_brightness = 100, .pwm_period_ns = 70 * 1024, + .enable_gpio = -1, }; static struct gpio_keys_button nb0916_gpio_keys[] = {