Received: by 10.213.65.68 with SMTP id h4csp3863668imn; Tue, 10 Apr 2018 05:57:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49f1W/OCkV0YroAg3bKJRXa6SBeRxNlqIdVpda8Aej5A4MVQ/QstpepGH/f/oT9bndTxI2y X-Received: by 2002:a17:902:650e:: with SMTP id b14-v6mr315474plk.147.1523365056694; Tue, 10 Apr 2018 05:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523365056; cv=none; d=google.com; s=arc-20160816; b=Eu1WG7YuZYbfoYzwb/OzCUi6DJZN6PyJxH3u8CNnX2FxuA6oRZUDRAvYPi9N3CbgVG o8G2rBuCRDrBtptuHMCrmyU5yyFuDbU2QW53wN0s5PZUDb1/CVUks2Alw5FW1rghf7Y5 bgHm2vM/ZkLfG3Go1d7yR08Mia084rnQ/VBO/9MMPxKlhnh8LW32UczoVxqN6KpnTztp /DhW5z3Hqwt0o6N4fbu8I5Hu7mnWu4+e3iE/dcvoKaQMjrr5UiYOFeLq4WZR7Kqngatt l49zLPLujhBfPP9UdIe9kN8jzPuSQNfQiAzopYBqJG8I+wX1hbcqncxLKkOj4UAPvfBE bvOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qvl5Mcpmpfi8CSrBXtkeK8Rm7DJFm+WGwf8bORM1HwI=; b=zg8MoYff3Ed9B0JSqhB0wZ6cHzJI1ZgfFw4+IQMGia/PtH0qgEUwKWSleviXIrGeJ7 5htxWuaPCQBMHMR1OyZl8D8OVcfc5n8jvX9/OD8l419tJGxNvsI6Dt7TbJdSQVnikeYn okvPH0QnNICGeXs1W0qDkZs63OiXCqFygA5WckDjdF9CL7HN+VQMMQ4JhKKcLibLGwUJ sSpCdJ9ZGfwuWIg3EfesL9WWCNLdTbGtT3/WRX6FewdLDvNPjxz2q0WuVeflvjVoTrG1 m4Iz4gV1seeAA8CuEzDgtrPc12QP01pHlZalX4jl/hIWwoPD77PhamqxYM+l0j5VGxI8 4itw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12-v6si2741818pln.211.2018.04.10.05.56.59; Tue, 10 Apr 2018 05:57:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbeDJMv7 (ORCPT + 99 others); Tue, 10 Apr 2018 08:51:59 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:50988 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbeDJMv4 (ORCPT ); Tue, 10 Apr 2018 08:51:56 -0400 Received: from ayla.of.borg ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id Ycrj1x00V3XaVaC06crj6F; Tue, 10 Apr 2018 14:51:54 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1f5skR-00054e-Rl; Tue, 10 Apr 2018 14:51:43 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1f5skR-00041K-Po; Tue, 10 Apr 2018 14:51:43 +0200 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Cc: Rob Herring , Frank Rowand , Daniel Lezcano , Thomas Gleixner , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Heiko Stuebner , Thierry Reding , Jonathan Hunter , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 5/5] pinctrl: sunxi: Use of_clk_get_parent_count() instead of open coding Date: Tue, 10 Apr 2018 14:51:41 +0200 Message-Id: <1523364701-15383-6-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523364701-15383-1-git-send-email-geert+renesas@glider.be> References: <1523364701-15383-1-git-send-email-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A new open coder has crept in since 470b73a38470e8ba ("pinctrl: sunxi: Use of_clk_get_parent_count() instead of open coding"), replace it. of_clk_get_parent_count() was moved to , so include that instead of . Signed-off-by: Geert Uytterhoeven --- This depends on "[PATCH v2 1/5] clk: Extract OF clock helpers in ". v2: - New. --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index 020d6d84639ca002..25e80a5370ca02f6 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c @@ -12,12 +12,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include @@ -1361,7 +1361,7 @@ int sunxi_pinctrl_init_with_variant(struct platform_device *pdev, goto gpiochip_error; } - ret = of_count_phandle_with_args(node, "clocks", "#clock-cells"); + ret = of_clk_get_parent_count(node); clk = devm_clk_get(&pdev->dev, ret == 1 ? NULL : "apb"); if (IS_ERR(clk)) { ret = PTR_ERR(clk); -- 2.7.4