Skip to content

Commit 526d028

Browse files
plbossarttiwai
authored andcommitted
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: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Message-ID: <20240312161217.79510-1-pierre-louis.bossart@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 300ab0d commit 526d028

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,11 +796,8 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt)
796796
pm_runtime_use_autosuspend(tas_hda->dev);
797797
pm_runtime_mark_last_busy(tas_hda->dev);
798798
pm_runtime_set_active(tas_hda->dev);
799-
pm_runtime_get_noresume(tas_hda->dev);
800799
pm_runtime_enable(tas_hda->dev);
801800

802-
pm_runtime_put_autosuspend(tas_hda->dev);
803-
804801
tas2781_reset(tas_hda->priv);
805802

806803
ret = component_add(tas_hda->dev, &tas2781_hda_comp_ops);

0 commit comments

Comments
 (0)