Skip to contentSkip to conversation

ASoC: Intel: Skylake: remove call to pci_dev_put

PATCH Superseded Vinod Koul 2 participants 4 messages Mar 16, 2016

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH v3 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 b67f3bd0fccd..c337d06793ec 100644
@@ -732,7 +732,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);
 	skl_codecs_remove(ebus);
 	skl_platform_unregister(&pci->dev);
 	skl_free_dsp(skl);
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 3 lines · Vinod Koul

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

This doesn't seem to apply against current code (I don't have the relevant SHA1s for the dependency) - can you please check and resend?

author
#2 lore raw
Quoted 7 lines · Mark Brown
Quoted 3 lines · Vinod Koul

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

This doesn't seem to apply against current code (I don't have the relevant SHA1s for the dependency) - can you please check and resend?

Thats surprising as I amended the commit in last series and sent this one. I will re-fetch your tree and do this again.

Thanks

Signature · 1 line
~Vinod
maintainer
#3 lore raw
Quoted 7 lines · Vinod Koul
Quoted 2 lines · Mark Brown

This doesn't seem to apply against current code (I don't have the relevant SHA1s for the dependency) - can you please check and resend?

Thats surprising as I amended the commit in last series and sent this one. I will re-fetch your tree and do this again.

Is it depending on some -next only stuff or something?