瀏覽代碼

staging: sm7xxfb: disable pci device

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>
Sudip Mukherjee 10 年之前
父節點
當前提交
f83e775d6e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/staging/sm7xxfb/sm7xxfb.c

+ 1 - 0
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