]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] yenta_socket.c: Fix missing pci_disable_dev
authorThomas Gleixner <tglx@linutronix.de>
Wed, 1 Dec 2004 09:10:46 +0000 (01:10 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 1 Dec 2004 09:10:46 +0000 (01:10 -0800)
Simple fix to make pci_enable/disable symetric and avoid the warning on
module unload.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/yenta_socket.c

index 160afaca6479928ecb1557c4dfe063a19e7c8ff4..4b8b822bcca37a6a400b0bbd0c50a24da185bcd6 100644 (file)
@@ -653,6 +653,7 @@ static void yenta_close(struct pci_dev *dev)
        yenta_free_resources(sock);
 
        pci_release_regions(dev);
+       pci_disable_device(dev);
        pci_set_drvdata(dev, NULL);
 }