Commit 526d0283 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Takashi Iwai

ALSA: hda/tas2781: remove unnecessary runtime_pm calls

The runtime_pm handling seems to have been loosely inspired by the
cs32l41 driver, but in this case the get_noresume/put sequence is not
required.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Message-ID: <20240312161217.79510-1-pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 300ab0df
...@@ -796,11 +796,8 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt) ...@@ -796,11 +796,8 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt)
pm_runtime_use_autosuspend(tas_hda->dev); pm_runtime_use_autosuspend(tas_hda->dev);
pm_runtime_mark_last_busy(tas_hda->dev); pm_runtime_mark_last_busy(tas_hda->dev);
pm_runtime_set_active(tas_hda->dev); pm_runtime_set_active(tas_hda->dev);
pm_runtime_get_noresume(tas_hda->dev);
pm_runtime_enable(tas_hda->dev); pm_runtime_enable(tas_hda->dev);
pm_runtime_put_autosuspend(tas_hda->dev);
tas2781_reset(tas_hda->priv); tas2781_reset(tas_hda->priv);
ret = component_add(tas_hda->dev, &tas2781_hda_comp_ops); ret = component_add(tas_hda->dev, &tas2781_hda_comp_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment