ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire
authorOder Chiou <oder_chiou@realtek.com>
Mon, 7 Jun 2021 22:22:36 +0000 (17:22 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 8 Jun 2021 12:36:38 +0000 (13:36 +0100)
commit9266d95405ae0c078f188ec8bca3a004631be429
tree474fac1cc4470e16a70fab71f89474db0775053c
parente343d34a9c912fc5c321e2a9fbc02e9dc9534ade
ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire

The device checking error should be a jump to pm_runtime_put_autosuspend()
as done before returning value.

Fixes: 867f8d18df4f ('ASoC: rt5682: fix getting the wrong device id when the suspend_stress_test')
Reviewed-by: Bard Liao <bard.liao@intel.com>
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210607222239.582139-13-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682-sdw.c