aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/gameport/fm801-gp.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-09-29 18:17:16 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-09-29 18:25:56 -0700
commitd345d97012c3f8fb72c0c9d2ee319ea958b63229 (patch)
tree534f39357cb21e4438627804889716e3224a207f /drivers/input/gameport/fm801-gp.c
parentInput: emu10k1-gp - add missing calls to pci_disable_device() (diff)
downloadlinux-dev-d345d97012c3f8fb72c0c9d2ee319ea958b63229.tar.xz
linux-dev-d345d97012c3f8fb72c0c9d2ee319ea958b63229.zip
Input: fm801-gp - add missing call to pci_disable_device()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/gameport/fm801-gp.c')
-rw-r--r--drivers/input/gameport/fm801-gp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm801-gp.c
index 14d3f3e208a2..a3b70ff21018 100644
--- a/drivers/input/gameport/fm801-gp.c
+++ b/drivers/input/gameport/fm801-gp.c
@@ -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[] = {