File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
drivers/input/touchscreen Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ static inline void exc3000_schedule_timer(struct exc3000_data *data)
109
109
mod_timer (& data -> timer , jiffies + msecs_to_jiffies (EXC3000_TIMEOUT_MS ));
110
110
}
111
111
112
+ static void exc3000_shutdown_timer (void * timer )
113
+ {
114
+ timer_shutdown_sync (timer );
115
+ }
116
+
112
117
static int exc3000_read_frame (struct exc3000_data * data , u8 * buf )
113
118
{
114
119
struct i2c_client * client = data -> client ;
@@ -386,6 +391,11 @@ static int exc3000_probe(struct i2c_client *client)
386
391
if (error )
387
392
return error ;
388
393
394
+ error = devm_add_action_or_reset (& client -> dev , exc3000_shutdown_timer ,
395
+ & data -> timer );
396
+ if (error )
397
+ return error ;
398
+
389
399
error = devm_request_threaded_irq (& client -> dev , client -> irq ,
390
400
NULL , exc3000_interrupt , IRQF_ONESHOT ,
391
401
client -> name , data );
You can’t perform that action at this time.
0 commit comments