]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: tas2552: Call pm_runtime_disable when the module is removed
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 8 Jun 2015 12:19:53 +0000 (15:19 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jun 2015 17:53:18 +0000 (18:53 +0100)
The module can not be loaded again after it has been removed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c

index 5e6490c19b7e56dad42bd203e990f86eeeeec982..7e65294f5244d3f1a12d2e54b0a6dbc465e5e1ef 100644 (file)
@@ -751,6 +751,7 @@ static int tas2552_probe(struct i2c_client *client,
 static int tas2552_i2c_remove(struct i2c_client *client)
 {
        snd_soc_unregister_codec(&client->dev);
+       pm_runtime_disable(&client->dev);
        return 0;
 }