Commit e05cb048 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] yenta_socket.c: Fix missing pci_disable_dev

Simple fix to make pci_enable/disable symetric and avoid the warning on
module unload.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dd7f76b8
...@@ -653,6 +653,7 @@ static void yenta_close(struct pci_dev *dev) ...@@ -653,6 +653,7 @@ static void yenta_close(struct pci_dev *dev)
yenta_free_resources(sock); yenta_free_resources(sock);
pci_release_regions(dev); pci_release_regions(dev);
pci_disable_device(dev);
pci_set_drvdata(dev, NULL); pci_set_drvdata(dev, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment