ASoC: rsnd: move priv member settings to upper side
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 25 Feb 2014 06:14:33 +0000 (22:14 -0800)
committerMark Brown <broonie@linaro.org>
Mon, 3 Mar 2014 01:19:21 +0000 (10:19 +0900)
There is no big meaning, but preparation for platform dai support

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

index f316a663e4d367e5ac6944c5e54209ebc0d108d1..a8e6aa6cb3346d686dd513e1819e8427f97de073 100644 (file)
@@ -594,6 +594,10 @@ static int rsnd_dai_probe(struct platform_device *pdev,
                return -ENOMEM;
        }
 
+       priv->dai_nr    = dai_nr;
+       priv->daidrv    = drv;
+       priv->rdai      = rdai;
+
        for (i = 0; i < dai_nr; i++) {
 
                pmod = rsnd_ssi_mod_get_frm_dai(priv, i, 1);
@@ -630,10 +634,6 @@ static int rsnd_dai_probe(struct platform_device *pdev,
                        cmod ? "capture" : "  --   ");
        }
 
-       priv->dai_nr    = dai_nr;
-       priv->daidrv    = drv;
-       priv->rdai      = rdai;
-
        return 0;
 }