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: NTakashi Iwai <tiwai@suse.de> Fixes: d1ede064 ("ASoC: rt715: add RT715 codec driver") Signed-off-by: NVinod Koul <vkoul@kernel.org> Reviewed-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200826163340.3249608-5-vkoul@kernel.orgSigned-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录