ASoC: fix return value check in mt6351_codec_driver_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 7 May 2018 01:39:45 +0000 (01:39 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 9 May 2018 08:32:05 +0000 (17:32 +0900)
commitaaa730ca3f88f535dc12e2f0ff575f70f516841b
tree73e77fab09612d4d0de6436e0087b6337209f0b4
parent2d8102cc9a27577ffa4335aaaed4a26060688de2
ASoC: fix return value check in mt6351_codec_driver_probe()

In case of error, the function dev_get_regmap() returns NULL pointer not
ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6351.c