Commit c0d4021f authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab

[media] pci: cx88: Remove redundant pci_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent d441a4aa
...@@ -935,8 +935,6 @@ static void cx88_audio_finidev(struct pci_dev *pci) ...@@ -935,8 +935,6 @@ static void cx88_audio_finidev(struct pci_dev *pci)
snd_card_free((void *)card); snd_card_free((void *)card);
pci_set_drvdata(pci, NULL);
devno--; devno--;
} }
......
...@@ -520,7 +520,6 @@ static void cx8802_fini_common(struct cx8802_dev *dev) ...@@ -520,7 +520,6 @@ static void cx8802_fini_common(struct cx8802_dev *dev)
/* unregister stuff */ /* unregister stuff */
free_irq(dev->pci->irq, dev); free_irq(dev->pci->irq, dev);
pci_set_drvdata(dev->pci, NULL);
/* free memory */ /* free memory */
btcx_riscmem_free(dev->pci,&dev->mpegq.stopper); btcx_riscmem_free(dev->pci,&dev->mpegq.stopper);
......
...@@ -1922,7 +1922,6 @@ static void cx8800_finidev(struct pci_dev *pci_dev) ...@@ -1922,7 +1922,6 @@ static void cx8800_finidev(struct pci_dev *pci_dev)
free_irq(pci_dev->irq, dev); free_irq(pci_dev->irq, dev);
cx8800_unregister_video(dev); cx8800_unregister_video(dev);
pci_set_drvdata(pci_dev, NULL);
/* free memory */ /* free memory */
btcx_riscmem_free(dev->pci,&dev->vidq.stopper); btcx_riscmem_free(dev->pci,&dev->vidq.stopper);
......
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