ASoC: ak4458: add return value for ak4458_probe
commit4c31b4b4ba65aad5726428a553b555e164b981ec
authorViorel Suman <viorel.suman@nxp.com>
Thu, 9 May 2019 13:30:36 +0000 (9 13:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:32 +0000 (10 09:53 +0200)
tree8242303f04eec2978ac4532dc2f5a073f88c7af0
parent0c19bcdb0db99be0aeef0c9055d00485fc467ca3
ASoC: ak4458: add return value for ak4458_probe

[ Upstream commit a8dee20d792432740509237943700fbcfc230bad ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/ak4458.c