From: Kuninori Morimoto Date: Mon, 10 Mar 2014 02:37:56 +0000 (-0700) Subject: ASoC: simple-card: card name can be option X-Git-Tag: accepted/tizen/common/20141203.182822~239^2~19^2~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12ffa6fc1958879a81b6af1624c1a2edd83ec04a;p=platform%2Fkernel%2Flinux-arm64.git ASoC: simple-card: card name can be option snd_card.name is now option on DT case. non-DT case can follow same style, and it is understandable from platform point of view. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 7cabcc5..5dd4769 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -287,7 +287,6 @@ static int asoc_simple_card_probe(struct platform_device *pdev) } if (!cinfo->name || - !cinfo->card || !cinfo->codec_dai.name || !cinfo->codec || !cinfo->platform || @@ -296,7 +295,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev) return -EINVAL; } - priv->snd_card.name = cinfo->card; + priv->snd_card.name = (cinfo->card) ? cinfo->card : cinfo->name; dai_link->name = cinfo->name; dai_link->stream_name = cinfo->name; dai_link->platform_name = cinfo->platform;