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>
Tue, 13 Feb 2018 11:36:03 +0000 (12:36 +0100)
commita7de0e9718c3062ed5fad916ceb65f387a29447b
tree1276e5ab654d490701971fd9883c6999d38702c4
parent7c17a1e5852a0c1c67a2ac65569270619fe1d576
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