mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
input: touchscreen: vtl_ts: fix compilation error
Change-Id: Ifdf10c3bb1a776389685388a0695fb1df90dcd70 Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
This commit is contained in:
parent
cafa8ebd5f
commit
9ddbd9e7bb
|
|
@ -443,8 +443,7 @@ int vtl_ts_remove(struct i2c_client *client)
|
|||
//#endif
|
||||
if(ts->driver->input_dev != NULL)
|
||||
{
|
||||
input_unregister_device(ts->driver->input_dev);
|
||||
input_free_device(ts->driver->input_dev);
|
||||
input_unregister_device(ts->driver->input_dev);
|
||||
}
|
||||
|
||||
if ( ts->driver->proc_entry != NULL ){
|
||||
|
|
@ -632,8 +631,7 @@ static int vtl_ts_handler(void *data)
|
|||
|
||||
/* ERR_PROC_ENTRY: */
|
||||
if(ts->driver->input_dev){
|
||||
input_unregister_device(ts->driver->input_dev);
|
||||
input_free_device(ts->driver->input_dev);
|
||||
input_unregister_device(ts->driver->input_dev);
|
||||
ts->driver->input_dev = NULL;
|
||||
}
|
||||
ERR_INIT_INPUT:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user