From: Kuninori Morimoto Date: Thu, 15 Jun 2017 00:25:33 +0000 (+0000) Subject: ASoC: simple-scu-card: use asoc_simple_card_of_parse_routing() X-Git-Tag: android-x86-8.1-r1~2533^2~60^2^2~5^6~8 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bfe6b5898269b92571e502b4d706c815dd6bf53b;p=android-x86%2Fkernel.git ASoC: simple-scu-card: use asoc_simple_card_of_parse_routing() Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index 44da69101097..a75b385455c4 100644 --- a/sound/soc/generic/simple-scu-card.c +++ b/sound/soc/generic/simple-scu-card.c @@ -191,7 +191,7 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv) if (!node) return -EINVAL; - ret = snd_soc_of_parse_audio_routing(card, PREFIX "routing"); + ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0); if (ret < 0) return ret;