From: Gregory CLEMENT <gregory.clement@bootlin.com>
Date: Wed, 12 Sep 2018 17:35:49 +0200
Subject: clk: mvebu: ap806: Remove superfluous of_clk_add_provider
Git-commit: 6ffeddd6bca4cb838623d0bf4134c0eb06ad7485
Patch-mainline: v4.20-rc1
References: fate#326470
While applying the commit a8309cedcdce ("clk: apn806: Add eMMC clock to
system controller driver"), of_clk_add_provider was added wheres it was
already present in the probe function.
This extraneous call is harmless but not useful so remove it.
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
---
drivers/clk/mvebu/ap806-system-controller.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/clk/mvebu/ap806-system-controller.c b/drivers/clk/mvebu/ap806-system-controller.c
index fa2fbd2cef4a..cfc6b82d2448 100644
--- a/drivers/clk/mvebu/ap806-system-controller.c
+++ b/drivers/clk/mvebu/ap806-system-controller.c
@@ -155,7 +155,6 @@ static int ap806_syscon_common_probe(struct platform_device *pdev,
goto fail4;
}
- of_clk_add_provider(np, of_clk_src_onecell_get, &ap806_clk_data);
ret = of_clk_add_provider(np, of_clk_src_onecell_get, &ap806_clk_data);
if (ret)
goto fail_clk_add;
--
2.11.0