Skip to content
Unverified Commit db1a4250 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

ASoC: rt700: 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: default avatarTakashi Iwai <tiwai@suse.de>
Fixes: 7d2a5f9a ("ASoC: rt700: add rt700 codec driver")
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200826163340.3249608-6-vkoul@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 282eb0b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment