From: Hans Verkuil <hans.verk...@cisco.com>

Move pci_disable_device() down otherwise it will complain about an
unfreed irq.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
---
 drivers/media/pci/cx88/cx88-video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/cx88/cx88-video.c 
b/drivers/media/pci/cx88/cx88-video.c
index d8a86cd..a64ae31 100644
--- a/drivers/media/pci/cx88/cx88-video.c
+++ b/drivers/media/pci/cx88/cx88-video.c
@@ -1571,12 +1571,12 @@ static void cx8800_finidev(struct pci_dev *pci_dev)
                cx88_ir_stop(core);
 
        cx88_shutdown(core); /* FIXME */
-       pci_disable_device(pci_dev);
 
        /* unregister stuff */
 
        free_irq(pci_dev->irq, dev);
        cx8800_unregister_video(dev);
+       pci_disable_device(pci_dev);
 
        core->v4ldev = NULL;
 
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to