Thread (5 messages) 5 messages, 4 authors, 2019-05-30

Re: [PATCH] clk: samsung: exynos5433: Use of_clk_get_parent_count()

From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: 2019-05-30 11:13:25
Also in: linux-clk, linux-samsung-soc

On 5/25/19 13:55, Kefeng Wang wrote:
Use of_clk_get_parent_count() instead of open coding.

Signed-off-by: Kefeng Wang <redacted>
Patch applied, thank you.

In future please make sure to also Cc linux-clk@vger.kernel.org mailing list 
and the clk maintainers (Stephen, Michael) when sending clk patches.
quoted hunk ↗ jump to hunk
---
 drivers/clk/samsung/clk-exynos5433.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c
index dae1c96de933..14e253915ca4 100644
--- a/drivers/clk/samsung/clk-exynos5433.c
+++ b/drivers/clk/samsung/clk-exynos5433.c
@@ -5590,8 +5590,8 @@ static int __init exynos5433_cmu_probe(struct platform_device *pdev)
 	data->nr_clk_save = info->nr_clk_regs;
 	data->clk_suspend = info->suspend_regs;
 	data->nr_clk_suspend = info->nr_suspend_regs;
-	data->nr_pclks = of_count_phandle_with_args(dev->of_node, "clocks",
-						    "#clock-cells");
+	data->nr_pclks = of_clk_get_parent_count(dev->of_node);
+
 	if (data->nr_pclks > 0) {
 		data->pclks = devm_kcalloc(dev, sizeof(struct clk *),
 					   data->nr_pclks, GFP_KERNEL);
-- 
Thanks,
Sylwester

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help