From: Sudip Mukherjee Date: Sat, 28 Mar 2015 09:03:41 +0000 (+0530) Subject: staging: sm7xxfb: disable pci device X-Git-Tag: firefly_0821_release~176^2~1998^2~51 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f83e775d6ef55ea4edbe2740b8a56a94f97158b5;p=firefly-linux-kernel-4.4.55.git staging: sm7xxfb: disable pci device disable the pci device when the module exits. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 149286efda5d..77f51a075004 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -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