summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 10:36:21 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-17 11:03:57 +0200
commitec9bdd22db09df09d8775d13a0b9ff995ac87026 (patch)
treefbd2d4d740885778783083c9f6746cfa7f4b4440 /drivers/media/pci
parent[media] pci: bt878: Remove redundant pci_set_drvdata (diff)
downloadlinux-ec9bdd22db09df09d8775d13a0b9ff995ac87026.tar.xz
linux-ec9bdd22db09df09d8775d13a0b9ff995ac87026.zip
[media] pci: ngene: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/ngene/ngene-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c
index 37ebc42392ad..8402ed6d886e 100644
--- a/drivers/media/pci/ngene/ngene-core.c
+++ b/drivers/media/pci/ngene/ngene-core.c
@@ -1648,7 +1648,6 @@ void ngene_remove(struct pci_dev *pdev)
cxd_detach(dev);
ngene_stop(dev);
ngene_release_buffers(dev);
- pci_set_drvdata(pdev, NULL);
pci_disable_device(pdev);
}
@@ -1702,6 +1701,5 @@ fail1:
ngene_release_buffers(dev);
fail0:
pci_disable_device(pci_dev);
- pci_set_drvdata(pci_dev, NULL);
return stat;
}