summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-08-09 05:50:19 +0000
committerMark Brown <broonie@kernel.org>2016-08-09 12:43:55 +0100
commita09f383ef72947b7d59fc7fe50fe332ab5c35dca (patch)
tree7253f57d3ed2eaf6120abd91be7a0b07cb7bfc18 /sound/soc/sh
parent600ee2085515c03a7a4a6025034fefccf29e5a24 (diff)
downloadtalos-obmc-linux-a09f383ef72947b7d59fc7fe50fe332ab5c35dca.tar.gz
talos-obmc-linux-a09f383ef72947b7d59fc7fe50fe332ab5c35dca.zip
ASoC: rsrc-card: use asoc_simple_card_canonicalize_dailink()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/rcar/rsrc-card.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c
index 1bf35634ebba..0bf17dae2b64 100644
--- a/sound/soc/sh/rcar/rsrc-card.c
+++ b/sound/soc/sh/rcar/rsrc-card.c
@@ -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;
OpenPOWER on IntegriCloud