ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev
authorCamel Guo <camelg@axis.com>
Tue, 1 Sep 2020 13:57:35 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 10:59:54 +0000 (12:59 +0200)
commitd64aac6b2c54a58df01df5bebeee561b7b1a65cd
treeda2b60a5ec8d3d1dc8b4b3bef41891578f65ec8f
parent7cee8e91e3ad1ffbe76974dabbc694624b4b497a
ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev

[ Upstream commit 2569231d71dff82cfd6e82ab3871776f72ec53b6 ]

In adcx140_i2c_probe, adcx140->dev is accessed before its
initialization. This commit fixes this bug.

Fixes: 689c7655b50c ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family")
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Camel Guo <camel.guo@axis.com>
Link: https://lore.kernel.org/r/20200901135736.32036-1-camel.guo@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tlv320adcx140.c