diff mbox

touchscreen: tnetv107x: fix input_device leak

Message ID 1285491587-32707-1-git-send-email-segooon@gmail.com (mailing list archive)
State Rejected
Headers show

Commit Message

Kulikov Vasiliy Sept. 26, 2010, 8:59 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/tnetv107x-ts.c b/drivers/input/touchscreen/tnetv107x-ts.c
index cf1dba2..82d9a01 100644
--- a/drivers/input/touchscreen/tnetv107x-ts.c
+++ b/drivers/input/touchscreen/tnetv107x-ts.c
@@ -361,6 +361,7 @@  static int __devexit tsc_remove(struct platform_device *pdev)
 
 	input_unregister_device(ts->input_dev);
 	free_irq(ts->tsc_irq, ts);
+	input_free_device(ts->input_dev);
 	clk_put(ts->clk);
 	iounmap(ts->regs);
 	release_mem_region(ts->res->start, resource_size(ts->res));