]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
authorMaarten Zanders <maarten.zanders@mind.be>
Fri, 28 Oct 2022 14:11:28 +0000 (16:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:32 +0000 (13:59 +0100)
commit6d1688a32b45fc0f7d1e1972d3bfeb0fc4f32355
tree0048e2bfbcb6dbc2b8df00663c39986c6464fd34
parente0a7a1f59f070bf40df502bf6b1d176d8ed55465
ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N

[ Upstream commit 6a564338a23cefcfc29c4a535b98402d13efdda6 ]

When CONFIG_PM=N, pm_runtime_put_sync() returns -ENOSYS
which breaks the probe function of these drivers.

Other users of pm_runtime_put_sync() typically don't check
the return value. In order to keep the program flow as
intended, check for -ENOSYS.

This commit is similar to commit 0434d3f (omap-mailbox.c).

Fixes: cab04ab5900f ("ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk")
Fixes: 203773e39347 ("ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk")
Fixes: 2277e7e36b4b ("ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk")
Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20221028141129.100702-1-maarten.zanders@mind.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit c08f4ea79f7a79761a2f4acacdb7fe73f4f0f714)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
sound/soc/fsl/fsl_asrc.c
sound/soc/fsl/fsl_esai.c
sound/soc/fsl/fsl_sai.c