ASoC: tas2552: add missed regulator_bulk_disable in remove
Subsystems (3)
PATCH 1/1 ASoC: tas2552: add missed regulator_bulk_disable in remove
The driver forgets to call regulator_bulk_disable() in remove like that in probe failure.
Add the missed call to fix it.
Signed-off-by Chuhong Yuan <[email protected]>
--- sound/soc/codecs/tas2552.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/codecs/tas2552.c +3 -0
@@ -616,6 +616,9 @@ static void tas2552_component_remove(struct snd_soc_component *component)pm_runtime_put (component->dev);gpiod_set_value (tas2552->enable_gpio,0 ); + +regulator_bulk_disable (ARRAY_SIZE (tas2552->supplies), + tas2552->supplies); };#ifdef CONFIG_PM
Signature · 1 line
2.24.0
Mark Brown
maintainerQuoted 3 lines · Chuhong Yuan
The driver forgets to call
regulator_bulk_disable()in remove like that in probe failure.
Add the missed call to fix it.
Another runtime PM interaction here.