From: Devendra Naga Date: Wed, 11 Jul 2012 06:09:15 +0000 (+0545) Subject: staging/slicoss: disable pci device at remove X-Git-Tag: firefly_0821_release~3680^2~2356^2~299 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d99b5ac65e7827f10ba60b1ea44d7bd041d58d1d;p=firefly-linux-kernel-4.4.55.git staging/slicoss: disable pci device at remove at probe we enabled the device, and we should disable it at remove. Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 785e4c5f269e..56829fc032ff 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -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)