ASoC: ak4458: add return value for ak4458_probe
authorViorel Suman <viorel.suman@nxp.com>
Thu, 9 May 2019 13:30:36 +0000 (13:30 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 May 2019 11:38:01 +0000 (12:38 +0100)
commita8dee20d792432740509237943700fbcfc230bad
treeff2755aea745ad2f5fdca99b415737c06087446d
parentf3df05c805983427319eddc2411a2105ee1757cf
ASoC: ak4458: add return value for ak4458_probe

AK4458 is probed successfully even if AK4458 is not present - this
is caused by probe function returning no error on i2c access failure.
Return an error on probe if i2c access has failed.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4458.c