staging: sm7xxfb: disable pci device
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 28 Mar 2015 09:03:41 +0000 (14:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 11:55:03 +0000 (13:55 +0200)
disable the pci device when the module exits.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c

index 149286efda5d42321e6b38dcc485b98753c33992..77f51a07500470215cf024681444b72c425bb401 100644 (file)
@@ -943,6 +943,7 @@ static void smtcfb_pci_remove(struct pci_dev *pdev)
        unregister_framebuffer(&sfb->fb);
        smtc_free_fb_info(sfb);
        pci_release_region(pdev, 0);
+       pci_disable_device(pdev);
 }
 
 #ifdef CONFIG_PM