OSDN Git Service

ASoC: simple-card: Fix misleading error message
authorJulian Scheel <julian@jusst.de>
Wed, 24 May 2017 10:28:23 +0000 (12:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:09:36 +0000 (20:09 +0100)
commit69fcbf02d56f3bb08d661b21429f7fcf5374e439
tree4d24dbdbf5e94d30fa7fe63eada2add0c5acc17f
parent197ceb5fc08493bbc7913743a5b6e5aa897d3ed7
ASoC: simple-card: Fix misleading error message

commit 7ac45d1635a4cd2e99a4b11903d4a2815ca1b27b upstream.

In case cpu could not be found the error message would always refer to
/codec/ not being found in DT. Fix this by catching the cpu node not found
case explicitly.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: thongsyho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/generic/simple-card.c