mirror of https://gitee.com/openkylin/linux.git
ASoC: tas2552: Call pm_runtime_disable when the module is removed
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>
This commit is contained in:
parent
4afdd89df0
commit
4785ed89f2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue