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

[media] pci: flexcop: 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>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 06333e0a
...@@ -319,7 +319,6 @@ static int flexcop_pci_init(struct flexcop_pci *fc_pci) ...@@ -319,7 +319,6 @@ static int flexcop_pci_init(struct flexcop_pci *fc_pci)
err_pci_iounmap: err_pci_iounmap:
pci_iounmap(fc_pci->pdev, fc_pci->io_mem); pci_iounmap(fc_pci->pdev, fc_pci->io_mem);
pci_set_drvdata(fc_pci->pdev, NULL);
err_pci_release_regions: err_pci_release_regions:
pci_release_regions(fc_pci->pdev); pci_release_regions(fc_pci->pdev);
err_pci_disable_device: err_pci_disable_device:
...@@ -332,7 +331,6 @@ static void flexcop_pci_exit(struct flexcop_pci *fc_pci) ...@@ -332,7 +331,6 @@ static void flexcop_pci_exit(struct flexcop_pci *fc_pci)
if (fc_pci->init_state & FC_PCI_INIT) { if (fc_pci->init_state & FC_PCI_INIT) {
free_irq(fc_pci->pdev->irq, fc_pci); free_irq(fc_pci->pdev->irq, fc_pci);
pci_iounmap(fc_pci->pdev, fc_pci->io_mem); pci_iounmap(fc_pci->pdev, fc_pci->io_mem);
pci_set_drvdata(fc_pci->pdev, NULL);
pci_release_regions(fc_pci->pdev); pci_release_regions(fc_pci->pdev);
pci_disable_device(fc_pci->pdev); pci_disable_device(fc_pci->pdev);
} }
......
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