]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: rt715: Fix return check for devm_regmap_init_sdw()
authorVinod Koul <vkoul@kernel.org>
Wed, 26 Aug 2020 16:33:39 +0000 (22:03 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2020 17:58:42 +0000 (18:58 +0100)
commit282eb0b52e3f0399ee48a4cad0d9ffec840b0164
tree31f0adf2b323728c0aaa88afc84b3920ee428cfc
parentbe1a4b2c56db860a220c6f74d461188e5733264a
ASoC: rt715: Fix return check for devm_regmap_init_sdw()

devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on
failure which should be checked with IS_ERR. Also use PTR_ERR for
returning error codes.

Reported-by: Takashi Iwai <tiwai@suse.de>
Fixes: d1ede0641b05 ("ASoC: rt715: add RT715 codec driver")
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200826163340.3249608-5-vkoul@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt715-sdw.c