Message ID | 1432565608-26036-10-git-send-email-tomeu.vizoso@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 65C8F9F1CC for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 25 May 2015 15:09:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3BB220381 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 25 May 2015 15:09:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D620F2012E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 25 May 2015 15:09:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ywty2-0003AT-51; Mon, 25 May 2015 15:07:02 +0000 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ywtpv-0004af-JU for linux-arm-kernel@lists.infradead.org; Mon, 25 May 2015 14:58:43 +0000 Received: by wgme6 with SMTP id e6so6491924wgm.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 25 May 2015 07:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=v3oVRVBkDutGyEmvcmmH44xnGO0YHonKukFhS/K/P4g=; b=UGCPQkrhW4KSDkQa8RnXI1jQI/P886yWau7mb97M37YGVeaQcJD88b+QbcAPvW29Cq 6PHsrJ6+1EPN5CEJbkPkhfglW+HoAgmFRqAoXw3kqMyT3DYGCv6/N3VfrmKzURIvDFx/ PHXAmwhEkQl+2HxH/1qUFyQHJkYjcpWF+z39qN+/nVg2IWReBsRklaHraPowqxuwDSyM Aa3xT5YkjAWNjgwo/Ro75lHRs3y6PwRhuveaQsFDARmD+/pKfgzF1wuFLSnAhjANwRfA Wj2LdPofXNmK0rPp5mWzSYtjX8x+X1asYw8Ny+C4UX4GTnBBGSK9E4Yx+8dDd4qhX5cG Ut0g== X-Received: by 10.194.61.236 with SMTP id t12mr31645916wjr.59.1432565897636; Mon, 25 May 2015 07:58:17 -0700 (PDT) Received: from cizrna.lan ([109.72.12.80]) by mx.google.com with ESMTPSA id ez19sm12258917wid.19.2015.05.25.07.58.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2015 07:58:16 -0700 (PDT) From: Tomeu Vizoso <tomeu.vizoso@collabora.com> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 09/21] gpio: Probe pinctrl devices on demand Date: Mon, 25 May 2015 16:53:13 +0200 Message-Id: <1432565608-26036-10-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432565608-26036-1-git-send-email-tomeu.vizoso@collabora.com> References: <1432565608-26036-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150525_075839_820841_9CDDC40E X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Mark Rutland <mark.rutland@arm.com>, Alexandre Courbot <gnurou@gmail.com>, Tomeu Vizoso <tomeu.vizoso@collabora.com>, linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, =?UTF-8?q?St=C3=A9phane=20Marchesin?= <stephane.marchesin@gmail.com>, Thierry Reding <thierry.reding@gmail.com>, Grant Likely <grant.likely@linaro.org>, Alexander Holler <holler@ahsoftware.de> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 |
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 190183d..e26e105 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -362,6 +362,8 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip) if (ret) break; + of_platform_device_ensure(pinspec.np); + pctldev = of_pinctrl_get(pinspec.np); if (!pctldev) break;
Ensure that the device corresponding to the DT node of the pin controller has been registered. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> --- drivers/gpio/gpiolib-of.c | 2 ++ 1 file changed, 2 insertions(+)