From: Axel Lin Date: Fri, 3 Sep 2010 02:52:37 +0000 (-0700) Subject: Input: tps6507x-ts - properly unregister input device on removal X-Git-Tag: v2.6.37-rc1~5^2~3^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a26f5d18d45d49ff38ad2ddfed9c783dd2a19ab;p=platform%2Fkernel%2Flinux-exynos.git Input: tps6507x-ts - properly unregister input device on removal Once device is registered we should call input_unregister_device() instead of input_free_device(). Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index 7286209..c8c136c 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -359,7 +359,7 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev) cancel_delayed_work_sync(&tsc->work); destroy_workqueue(tsc->wq); - input_free_device(input_dev); + input_unregister_device(input_dev); tps6507x_dev->ts = NULL; kfree(tsc);