Input: stmpe-ts - remove input_free_device() in stmpe_ts_remove()
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Sep 2010 02:52:49 +0000 (19:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Sep 2010 03:14:14 +0000 (20:14 -0700)
It is forbidden to call input_free_device() after input_unregister_device().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/stmpe-ts.c

index 656148ec00277d32ee2c7b2d24e6dba673375efb..0339d1d0d29ebfd3d056ae238e38d52b1042ef3e 100644 (file)
@@ -361,7 +361,6 @@ static int __devexit stmpe_ts_remove(struct platform_device *pdev)
        platform_set_drvdata(pdev, NULL);
 
        input_unregister_device(ts->idev);
-       input_free_device(ts->idev);
 
        kfree(ts);