]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: mmp-sspa: Fix the error handling in probe()
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 20 May 2020 08:35:16 +0000 (10:35 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 20 May 2020 14:48:16 +0000 (15:48 +0100)
commit6ea460d52299f7febd408f2710d7c43ce505bc2c
tree007aa958d8508af0622de9d3caee268ad05b91d4
parentd81bb8726c247c3e7719d21bf213c5400de29e03
ASoC: mmp-sspa: Fix the error handling in probe()

If we fail after pm_runtime_enable(), we fail to undo it. Same with
clk_prepare_enable(). Let's order them after all things that can fail.

Fixes: 7d98cc648253 ("ASoC: mmp-sspa: Add support for the runtime power management")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200520083516.2120802-1-lkundrak@v3.sk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/mmp-sspa.c