Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234952
b: refs/heads/master
c: 1c1e864
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Jan 26, 2011
1 parent 53ad36c commit 615e5cd
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: 57df5573a56322e6895451f759c19e875252817d
refs/heads/master: 1c1e8646963e319132b4cf551fbfd10b364d0aed
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 @@ -43,7 +43,6 @@ struct tps6507x_ts {
struct input_dev *input_dev;
struct device *dev;
char phys[32];
struct workqueue_struct *wq;
struct delayed_work work;
unsigned polling; /* polling is active */
struct ts_event tc;
Expand Down Expand Up @@ -220,8 +219,8 @@ static void tps6507x_ts_handler(struct work_struct *work)
poll = 1;

if (poll) {
schd = queue_delayed_work(tsc->wq, &tsc->work,
msecs_to_jiffies(tsc->poll_period));
schd = schedule_delayed_work(&tsc->work,
msecs_to_jiffies(tsc->poll_period));
if (schd)
tsc->polling = 1;
else {
Expand Down Expand Up @@ -303,7 +302,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
tsc->input_dev = input_dev;

INIT_DELAYED_WORK(&tsc->work, tps6507x_ts_handler);
tsc->wq = create_workqueue("TPS6507x Touchscreen");

if (init_data) {
tsc->poll_period = init_data->poll_period;
Expand All @@ -325,8 +323,8 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
if (error)
goto err2;

schd = queue_delayed_work(tsc->wq, &tsc->work,
msecs_to_jiffies(tsc->poll_period));
schd = schedule_delayed_work(&tsc->work,
msecs_to_jiffies(tsc->poll_period));

if (schd)
tsc->polling = 1;
Expand All @@ -341,7 +339,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev)

err2:
cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);
input_free_device(input_dev);
err1:
kfree(tsc);
Expand All @@ -357,7 +354,6 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev)
struct input_dev *input_dev = tsc->input_dev;

cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);

input_unregister_device(input_dev);

Expand Down

0 comments on commit 615e5cd

Please sign in to comment.