aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham2021-10-22 11:06:44 +0100
committerMauro Carvalho Chehab2021-11-15 08:12:01 +0000
commit4406c813050727fce157e416851ddee389d0b135 (patch)
tree193c2ec6f8527f0f4fa6034e8bd0197c385588f4
parent901181b7ff1659893f8714a7752465a9b719f19f (diff)
media: tw5864: Disable PCI device when finished
The cleanup in tw5864_finidev() neglected to disable the PCI device after enabling it in tw5864_initdev(). Call pci_disable_device() after releasing the associated resources. Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/media/pci/tw5864/tw5864-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/tw5864/tw5864-core.c b/drivers/media/pci/tw5864/tw5864-core.c
index fee3b7711901..5cae73e6fb9c 100644
--- a/drivers/media/pci/tw5864/tw5864-core.c
+++ b/drivers/media/pci/tw5864/tw5864-core.c
@@ -334,6 +334,7 @@ static void tw5864_finidev(struct pci_dev *pci_dev)
/* release resources */
iounmap(dev->mmio);
pci_release_regions(pci_dev);
+ pci_disable_device(pci_dev);
v4l2_device_unregister(&dev->v4l2_dev);
}