diff options
Diffstat (limited to 'drivers/mfd/ucb1x00-ts.c')
-rw-r--r-- | drivers/mfd/ucb1x00-ts.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mfd/ucb1x00-ts.c b/drivers/mfd/ucb1x00-ts.c index 5e859486eaf8..ad34e2d22524 100644 --- a/drivers/mfd/ucb1x00-ts.c +++ b/drivers/mfd/ucb1x00-ts.c | |||
@@ -204,8 +204,7 @@ static inline int ucb1x00_ts_pen_down(struct ucb1x00_ts *ts) | |||
204 | static int ucb1x00_thread(void *_ts) | 204 | static int ucb1x00_thread(void *_ts) |
205 | { | 205 | { |
206 | struct ucb1x00_ts *ts = _ts; | 206 | struct ucb1x00_ts *ts = _ts; |
207 | struct task_struct *tsk = current; | 207 | DECLARE_WAITQUEUE(wait, current); |
208 | DECLARE_WAITQUEUE(wait, tsk); | ||
209 | int valid = 0; | 208 | int valid = 0; |
210 | 209 | ||
211 | set_freezable(); | 210 | set_freezable(); |
@@ -234,7 +233,7 @@ static int ucb1x00_thread(void *_ts) | |||
234 | 233 | ||
235 | 234 | ||
236 | if (ucb1x00_ts_pen_down(ts)) { | 235 | if (ucb1x00_ts_pen_down(ts)) { |
237 | set_task_state(tsk, TASK_INTERRUPTIBLE); | 236 | set_current_state(TASK_INTERRUPTIBLE); |
238 | 237 | ||
239 | ucb1x00_enable_irq(ts->ucb, UCB_IRQ_TSPX, machine_is_collie() ? UCB_RISING : UCB_FALLING); | 238 | ucb1x00_enable_irq(ts->ucb, UCB_IRQ_TSPX, machine_is_collie() ? UCB_RISING : UCB_FALLING); |
240 | ucb1x00_disable(ts->ucb); | 239 | ucb1x00_disable(ts->ucb); |
@@ -262,7 +261,7 @@ static int ucb1x00_thread(void *_ts) | |||
262 | valid = 1; | 261 | valid = 1; |
263 | } | 262 | } |
264 | 263 | ||
265 | set_task_state(tsk, TASK_INTERRUPTIBLE); | 264 | set_current_state(TASK_INTERRUPTIBLE); |
266 | timeout = HZ / 100; | 265 | timeout = HZ / 100; |
267 | } | 266 | } |
268 | 267 | ||