Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200117
b: refs/heads/master
c: f7a2e30
h: refs/heads/master
i:
  200115: a537925
v: v3
  • Loading branch information
Dan Carpenter authored and Dmitry Torokhov committed Jun 2, 2010
1 parent 7aee832 commit 9cce613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fbf89f25fc4dc68ba0857aca87e70fa5d2592d81
refs/heads/master: f7a2e30246281944064113dafbafe3eb14cd89e3
12 changes: 4 additions & 8 deletions trunk/drivers/input/touchscreen/tps6507x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static void tps6507x_ts_handler(struct work_struct *work)

if (poll) {
schd = queue_delayed_work(tsc->wq, &tsc->work,
tsc->poll_period * HZ / 1000);
msecs_to_jiffies(tsc->poll_period));
if (schd)
tsc->polling = 1;
else {
Expand Down Expand Up @@ -326,7 +326,7 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
goto err2;

schd = queue_delayed_work(tsc->wq, &tsc->work,
tsc->poll_period * HZ / 1000);
msecs_to_jiffies(tsc->poll_period));

if (schd)
tsc->polling = 1;
Expand All @@ -339,10 +339,8 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
return 0;

err2:
cancel_delayed_work(&tsc->work);
flush_workqueue(tsc->wq);
cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);
tsc->wq = 0;
input_free_device(input_dev);
err1:
kfree(tsc);
Expand All @@ -360,10 +358,8 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev)
if (!tsc)
return 0;

cancel_delayed_work(&tsc->work);
flush_workqueue(tsc->wq);
cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);
tsc->wq = 0;

input_free_device(input_dev);

Expand Down

0 comments on commit 9cce613

Please sign in to comment.