From: Kuninori Morimoto Date: Mon, 29 Jan 2018 02:40:28 +0000 (+0000) Subject: ASoC: remove rtd->platform checck X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bbf4d71aa9e21e8ee05e16cbb2cd2999252ce930;p=openwrt%2Fstaging%2Fblogic.git ASoC: remove rtd->platform checck Now, we are ready to replace rtd->platform to rtdcom list. From this patch, rtd->platform check is no longer needed. It will be replaced into rtdcom. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 96c44f6576c9..9558125b448d 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1162,11 +1162,6 @@ static int soc_bind_dai_link(struct snd_soc_card *card, rtd->platform = platform; } - if (!rtd->platform) { - dev_err(card->dev, "ASoC: platform %s not registered\n", - dai_link->platform_name); - goto _err_defer; - } soc_add_pcm_runtime(card, rtd); return 0;