Commit 6c05f484 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] rtl8139too.c: Fix missing pci_disable_dev

From: Thomas Gleixner <tglx@linutronix.de>

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 avatarJeff Garzik <jgarzik@pobox.com>
parent 00496936
...@@ -749,7 +749,7 @@ static void __rtl8139_cleanup_dev (struct net_device *dev) ...@@ -749,7 +749,7 @@ static void __rtl8139_cleanup_dev (struct net_device *dev)
pci_release_regions (pdev); pci_release_regions (pdev);
free_netdev(dev); free_netdev(dev);
pci_disable_device(pdev);
pci_set_drvdata (pdev, NULL); pci_set_drvdata (pdev, 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