ASoC: rsnd: remove error pointer for adg->clkout[i]
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 15 May 2017 01:59:22 +0000 (01:59 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 17 May 2017 09:26:28 +0000 (10:26 +0100)
commit d7f298197a22f11b38059f257842dac7c30a564c
("ASoC: rcar: fixup of_clk_add_provider() usage for multi clkout")
added adg->clkout[i] = ERR_PTR(-ENOENT),
but, adg->clkout[i] are assumed NULL or clk pointer.
This patch fix it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c

index cb4eab0e24ce8fcdc4fc880e63991337c916eac1..36bece8621b700c5f996f2324e4227b24ea56c2f 100644 (file)
@@ -556,7 +556,6 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
                        clk = clk_register_fixed_rate(dev, clkout_name[i],
                                                      parent_clk_name, 0,
                                                      req_rate[0]);
-                       adg->clkout[i] = ERR_PTR(-ENOENT);
                        if (!IS_ERR(clk))
                                adg->clkout[i] = clk;
                }