Commit 69a026a
ASoC: codecs: wcd938x: fix regulator leaks on probe errors
Make sure to disable and free the regulators on probe errors and on
driver unbind.
Fixes: 1657252 ("ASoC: codecs: wcd938x-sdw: add SoundWire driver")
Cc: stable@vger.kernel.org # 5.14
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231003155558.27079-5-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent da29b94 commit 69a026a
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3325 | 3325 | | |
3326 | 3326 | | |
3327 | 3327 | | |
3328 | | - | |
| 3328 | + | |
| 3329 | + | |
3329 | 3330 | | |
| 3331 | + | |
3330 | 3332 | | |
3331 | 3333 | | |
3332 | 3334 | | |
| |||
3592 | 3594 | | |
3593 | 3595 | | |
3594 | 3596 | | |
3595 | | - | |
| 3597 | + | |
3596 | 3598 | | |
3597 | 3599 | | |
3598 | 3600 | | |
3599 | 3601 | | |
3600 | 3602 | | |
3601 | | - | |
| 3603 | + | |
3602 | 3604 | | |
3603 | 3605 | | |
3604 | 3606 | | |
| |||
3608 | 3610 | | |
3609 | 3611 | | |
3610 | 3612 | | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
3611 | 3619 | | |
3612 | 3620 | | |
3613 | 3621 | | |
3614 | 3622 | | |
| 3623 | + | |
| 3624 | + | |
3615 | 3625 | | |
| 3626 | + | |
| 3627 | + | |
3616 | 3628 | | |
3617 | 3629 | | |
3618 | 3630 | | |
| |||
0 commit comments