summaryrefslogtreecommitdiffstats
path: root/drivers/input/gameport/emu10k1-gp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/gameport/emu10k1-gp.c')
-rw-r--r--drivers/input/gameport/emu10k1-gp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/gameport/emu10k1-gp.c b/drivers/input/gameport/emu10k1-gp.c
index 34615d40528..f85620590b6 100644
--- a/drivers/input/gameport/emu10k1-gp.c
+++ b/drivers/input/gameport/emu10k1-gp.c
@@ -106,8 +106,9 @@ static void __devexit emu_remove(struct pci_dev *pdev)
gameport_unregister_port(emu->gameport);
release_region(emu->io, emu->size);
- pci_disable_device(pdev);
kfree(emu);
+
+ pci_disable_device(pdev);
}
static struct pci_driver emu_driver = {