]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drivers/net: tulip_remove_one needs to call pci_disable_device()
authorIngo Molnar <mingo@elte.hu>
Fri, 14 Feb 2014 14:32:20 +0000 (15:32 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 25 Apr 2014 16:45:50 +0000 (18:45 +0200)
commit c321f7d7c87cdc623c87845f6378620573e57512 upstream.

Otherwise the device is not completely shut down.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/dec/tulip/tulip_core.c

index 4e8cfa2ac803abb13c9c692ef971618cc26d664b..779016068a822111af28fd6d8013653b03ff0fb3 100644 (file)
@@ -1940,6 +1940,7 @@ static void tulip_remove_one(struct pci_dev *pdev)
        free_netdev (dev);
        pci_release_regions (pdev);
        pci_set_drvdata (pdev, NULL);
+       pci_disable_device(pdev);
 
        /* pci_power_off (pdev, -1); */
 }