All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: tw5864: Disable PCI device when finished
@ 2021-10-22 10:06 Kieran Bingham
  0 siblings, 0 replies; only message in thread
From: Kieran Bingham @ 2021-10-22 10:06 UTC (permalink / raw)
  To: linux-media
  Cc: Kieran Bingham, Bluecherry Maintainers, Anton Sviridenko,
	Andrey Utkin, Mauro Carvalho Chehab, open list

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>
---
 drivers/media/pci/tw5864/tw5864-core.c | 1 +
 1 file changed, 1 insertion(+)

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);
 }
-- 
2.30.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-22 10:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 10:06 [PATCH] media: tw5864: Disable PCI device when finished Kieran Bingham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.