ASoC: tlv320aic31xx: Do not ignore errors in aic31xx_device_init()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 25 Jul 2014 10:12:54 +0000 (13:12 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 18:00:05 +0000 (19:00 +0100)
commita72d2abbe5752f3a773c4d8b7b41ae41f617f772
tree3eccc2468e314a6d084996be1fc12e2295945fa2
parent7171511eaec5bf23fb06078f59784a3a0626b38f
ASoC: tlv320aic31xx: Do not ignore errors in aic31xx_device_init()

We need to return the error codes from aic31xx_device_init() and return
from the i2c_probe with the error code.
We will have kernel panic (NULL pointer dereference) in
regulator_register_notifier() in case the devm_regulator_bulk_get() fails
(with -EPROBE_DEFER for example).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/tlv320aic31xx.c