ASoC: rsrc-card: use asoc_simple_card_canonicalize_dailink()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 9 Aug 2016 05:50:19 +0000 (05:50 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 9 Aug 2016 11:43:55 +0000 (12:43 +0100)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/rsrc-card.c

index 1bf35634ebba3d396a50ab6a1cf7628d4104cef0..0bf17dae2b6438778326a1b67730f4d1367960f3 100644 (file)
@@ -222,8 +222,10 @@ static int rsrc_card_parse_links(struct device_node *np,
                }
        }
 
-       /* Simple Card assumes platform == cpu */
-       dai_link->platform_of_node      = dai_link->cpu_of_node;
+       ret = asoc_simple_card_canonicalize_dailink(dai_link);
+       if (ret < 0)
+               return ret;
+
        dai_link->dpcm_playback         = 1;
        dai_link->dpcm_capture          = 1;
        dai_link->ops                   = &rsrc_card_ops;