]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: rsnd: Gen1 probe is not error
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 15 Oct 2015 03:25:28 +0000 (03:25 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 16 Oct 2015 14:21:35 +0000 (15:21 +0100)
Probing from Gen1 is not error. This patch fixup it

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

index a3e7c716e1f7283f6ad453ae91c52590b998b516..f1541f464f3002771867dbdd0bca8beae42020b0 100644 (file)
@@ -118,10 +118,8 @@ int rsnd_ctu_probe(struct platform_device *pdev,
        int i, nr, ret;
 
        /* This driver doesn't support Gen1 at this point */
-       if (rsnd_is_gen1(priv)) {
-               dev_warn(dev, "CTU is not supported on Gen1\n");
-               return -EINVAL;
-       }
+       if (rsnd_is_gen1(priv))
+               return 0;
 
        rsnd_of_parse_ctu(pdev, of_data, priv);
 
index 8d8eee6350c94f43632fcf42a19926613dd38d41..e36c0ac3374b6757e3e569e67845d3e4d53694b8 100644 (file)
@@ -333,10 +333,8 @@ int rsnd_dvc_probe(struct platform_device *pdev,
        int i, nr, ret;
 
        /* This driver doesn't support Gen1 at this point */
-       if (rsnd_is_gen1(priv)) {
-               dev_warn(dev, "CMD is not supported on Gen1\n");
-               return -EINVAL;
-       }
+       if (rsnd_is_gen1(priv))
+               return 0;
 
        rsnd_of_parse_dvc(pdev, of_data, priv);
 
index 8544403ffb269fa89ebe5af5b8ee88b2b8dad2da..ac2687d9ee5510a3f2ecc95f2a1b0608bb69be4c 100644 (file)
@@ -151,10 +151,8 @@ int rsnd_mix_probe(struct platform_device *pdev,
        int i, nr, ret;
 
        /* This driver doesn't support Gen1 at this point */
-       if (rsnd_is_gen1(priv)) {
-               dev_warn(dev, "MIX is not supported on Gen1\n");
-               return -EINVAL;
-       }
+       if (rsnd_is_gen1(priv))
+               return 0;
 
        rsnd_of_parse_mix(pdev, of_data, priv);