Skip to contentSkip to conversation

ASoC: Intel: Skylake: remove call to pci_dev_put

PATCH New Vinod Koul 1 participant 1 message Mar 16, 2016

Subsystems (3)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH v4 1/1 ASoC: Intel: Skylake: remove call to pci_dev_put

The PCI bus takes pci_dev_get() and pci_dev_put() is also there. So no need for drivers to invoke these. In SKL driver we were calling pci_dev_put() only which is not right, so remove this

---
 sound/soc/intel/skylake/skl.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/intel/skylake/skl.c +0 -1
index 72971dc55c52..07d9bc1cf3cb 100644
@@ -724,7 +724,6 @@ static void skl_remove(struct pci_dev *pci)
 
 	if (pci_dev_run_wake(pci))
 		pm_runtime_get_noresume(&pci->dev);
-	pci_dev_put(pci);
 
 	/* codec removal, invoke bus_device_remove */
 	snd_hdac_ext_bus_device_remove(ebus);
Signature · 1 line
1.9.1