ASoC: rsnd: use rsnd_mod_init() for ADG
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 21 Jan 2016 01:55:39 +0000 (01:55 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jan 2016 17:12:25 +0000 (17:12 +0000)
Current ADG doesn't use rsnd_mod_init(), but this limitation is no
longer necessary. Let's use common rsnd_mod_init()

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 6d3ef366d53692c222b311662a83feb6a5b6d8e4..19f5509f908deef2a401558b01a00806eafe6b90 100644 (file)
@@ -518,13 +518,8 @@ int rsnd_adg_probe(struct rsnd_priv *priv)
                return -ENOMEM;
        }
 
-       /*
-        * ADG is special module.
-        * Use ADG mod without rsnd_mod_init() to make debug easy
-        * for rsnd_write/rsnd_read
-        */
-       adg->mod.ops = &adg_ops;
-       adg->mod.priv = priv;
+       rsnd_mod_init(priv, &adg->mod, &adg_ops,
+                     NULL, 0, 0);
 
        rsnd_adg_get_clkin(priv, adg);
        rsnd_adg_get_clkout(priv, adg);