Fixes a panic on ARM. Diagnosis by Russell King.

Signed-off-by: Krzysztof Hałasa <[email protected]>

--- a/drivers/media/pci/solo6x10/solo6x10-core.c
+++ b/drivers/media/pci/solo6x10/solo6x10-core.c
@@ -164,9 +164,9 @@ static void free_solo_dev(struct solo_dev *solo_dev)
 
                /* Now cleanup the PCI device */
                solo_irq_off(solo_dev, ~0);
-               pci_iounmap(pdev, solo_dev->reg_base);
                if (pdev->irq)
                        free_irq(pdev->irq, solo_dev);
+               pci_iounmap(pdev, solo_dev->reg_base);
        }
 
        pci_release_regions(pdev);
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to