提交 d345d970 编写于 作者: D Dmitry Torokhov

Input: fm801-gp - add missing call to pci_disable_device()

Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 d8daece8
...@@ -106,8 +106,9 @@ static void __devexit emu_remove(struct pci_dev *pdev) ...@@ -106,8 +106,9 @@ static void __devexit emu_remove(struct pci_dev *pdev)
gameport_unregister_port(emu->gameport); gameport_unregister_port(emu->gameport);
release_region(emu->io, emu->size); release_region(emu->io, emu->size);
pci_disable_device(pdev);
kfree(emu); kfree(emu);
pci_disable_device(pdev);
} }
static struct pci_driver emu_driver = { static struct pci_driver emu_driver = {
......
...@@ -133,11 +133,11 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci) ...@@ -133,11 +133,11 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
{ {
struct fm801_gp *gp = pci_get_drvdata(pci); struct fm801_gp *gp = pci_get_drvdata(pci);
if (gp) {
gameport_unregister_port(gp->gameport); gameport_unregister_port(gp->gameport);
release_resource(gp->res_port); release_resource(gp->res_port);
kfree(gp); kfree(gp);
}
pci_disable_device(pci);
} }
static const struct pci_device_id fm801_gp_id_table[] = { static const struct pci_device_id fm801_gp_id_table[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册