Skip to content

Commit

Permalink
Input: fm801-gp - add missing call to pci_disable_device()
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
dtor committed Sep 30, 2010
1 parent d8daece commit d345d97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion drivers/input/gameport/emu10k1-gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
10 changes: 5 additions & 5 deletions drivers/input/gameport/fm801-gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
{
struct fm801_gp *gp = pci_get_drvdata(pci);

if (gp) {
gameport_unregister_port(gp->gameport);
release_resource(gp->res_port);
kfree(gp);
}
gameport_unregister_port(gp->gameport);
release_resource(gp->res_port);
kfree(gp);

pci_disable_device(pci);
}

static const struct pci_device_id fm801_gp_id_table[] = {
Expand Down

0 comments on commit d345d97

Please sign in to comment.