ASoC: Intel: bytcr_rt5651: Not being able to find the codec ACPI-dev is an error
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Mar 2018 14:35:58 +0000 (15:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Mar 2018 12:55:40 +0000 (12:55 +0000)
commite39cacc1b7de2a6d72ce49043c9cfd7dd129135a
tree08ae6aeb5535b53619c39392b1e3d9d5bb8a4f9b
parent12af5004145a3fa53246cca4cbb2c57d18dde202
ASoC: Intel: bytcr_rt5651: Not being able to find the codec ACPI-dev is an error

If we cannot find the codec ACPI-dev, then the snd-soc-core will not be
able to find the codec either and snd_soc_register_card() will just keep
exiting with -EPROBE_DEFER, filling the log with errors each time the
probe gets retried.

Instead simply log an error from the machine driver and exit with -ENODEV.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c