ASoC: dapm: Move error message to avoid some duplication
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 9 Apr 2020 18:12:08 +0000 (19:12 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 14:45:25 +0000 (15:45 +0100)
commit9a1bb600ecafcb07391c83f7c31057abdd3757b7
treea42e88ef232829ce84e6d9ed7bf437027e87ad5f
parent65f1d3d9cee7e10d105756b6ef678885a23a31d7
ASoC: dapm: Move error message to avoid some duplication

Move the error message into snd_soc_dapm_new_dai from
dapm_connect_dai_pair, since the two copies are almost identical and
are the only callers.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200409181209.30130-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c