summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2024-03-12 11:12:17 -0500
committerTakashi Iwai <tiwai@suse.de>2024-03-13 09:00:29 +0100
commit526d028341f73c0f2dbd5e4855a59ebb6d620be5 (patch)
treea73dd1c3dd5dcb7430ede1272ae60e4e02cbc719 /sound
parent300ab0dfbf3903f36b4456643d8201438e6553b1 (diff)
downloadlinux-stable-526d028341f73c0f2dbd5e4855a59ebb6d620be5.tar.gz
linux-stable-526d028341f73c0f2dbd5e4855a59ebb6d620be5.tar.bz2
linux-stable-526d028341f73c0f2dbd5e4855a59ebb6d620be5.zip
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/tas2781_hda_i2c.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c
index 2eb1f9e443c0..4475cea8e9f7 100644
--- a/sound/pci/hda/tas2781_hda_i2c.c
+++ b/sound/pci/hda/tas2781_hda_i2c.c
@@ -796,11 +796,8 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt)
pm_runtime_use_autosuspend(tas_hda->dev);
pm_runtime_mark_last_busy(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_put_autosuspend(tas_hda->dev);
-
tas2781_reset(tas_hda->priv);
ret = component_add(tas_hda->dev, &tas2781_hda_comp_ops);