ASoC: imx-sgtl5000: return E_PROBE_DEFER if ssi/codec not found
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Thu, 20 Jun 2013 21:20:49 +0000 (23:20 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 4 Jul 2013 14:58:47 +0000 (15:58 +0100)
commit28e5ca73ef9072ed58dbb81cfff6f908be8e3cd4
tree5de6f804a86f44734718b1e47e939321b2b90a45
parent84bbc4aa2de97143db0f6ef0c3fa0bd84f73b207
ASoC: imx-sgtl5000: return E_PROBE_DEFER if ssi/codec not found

If the ssi or codec drivers are not loaded (for instance, because spi or i2c
bus drivers are not loaded), returning -EINVAL will for people to unload and
then reload the module to get sound working. Returning E_PROBE_DEFER will
mitigate this.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-sgtl5000.c