]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: fsl_sai: Fix exiting path on probing failure
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Wed, 5 Feb 2020 16:04:36 +0000 (18:04 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2020 15:52:50 +0000 (15:52 +0000)
commitd1520889782dff58610c0b6b54d4cf3211ceb690
tree31646407bb818456a68e74c069e141cae169cc2c
parent13426feaf46c48fcddb591e89d35120fcc90527f
ASoC: fsl_sai: Fix exiting path on probing failure

If the imx-sdma driver is built as a module, the fsl-sai device doesn't
disable on probing failure, which causes the warning in the next probing:

==================================================================
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
fsl-sai 308a0000.sai: Unbalanced pm_runtime_enable!
==================================================================

Disabling the device properly fixes the issue.

Fixes: 812ad463e089 ("ASoC: fsl_sai: Add support for runtime pm")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Link: https://lore.kernel.org/r/20200205160436.3813642-1-oleksandr.suvorov@toradex.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c