staging/slicoss: disable pci device at remove
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 11 Jul 2012 06:09:15 +0000 (11:54 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jul 2012 00:26:02 +0000 (17:26 -0700)
at probe we enabled the device, and we should disable it at remove.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index 785e4c5..56829fc 100644 (file)
@@ -3234,6 +3234,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev)
        }
        free_netdev(dev);
        pci_release_regions(pcidev);
+       pci_disable_device(pcidev);
 }
 
 static int slic_entry_halt(struct net_device *dev)