clk: mvebu: ap806: Remove superfluous of_clk_add_provider
authorGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 12 Sep 2018 15:35:49 +0000 (17:35 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 1 Oct 2018 22:13:42 +0000 (15:13 -0700)
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>
drivers/clk/mvebu/ap806-system-controller.c

index fa2fbd2..cfc6b82 100644 (file)
@@ -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;