Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161273
b: refs/heads/master
c: cf5f439
h: refs/heads/master
i:
  161271: c467395
v: v3
  • Loading branch information
Richard Röjfors authored and Dmitry Torokhov committed Aug 5, 2009
1 parent 715ac0f commit 0652ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: d570e9ef84e559b09e729f27f5381b6868f6cc5f
refs/heads/master: cf5f439b48f82c230dcd81d0061e00664cbb6d39
8 changes: 5 additions & 3 deletions trunk/drivers/input/touchscreen/tsc2007.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,17 @@ static int __devinit tsc2007_probe(struct i2c_client *client,
goto err_free_mem;
}

/* Prepare for touch readings - power down ADC and enable PENIRQ */
err = tsc2007_xfer(ts, PWRDOWN);
if (err < 0)
goto err_free_irq;

err = input_register_device(input_dev);
if (err)
goto err_free_irq;

i2c_set_clientdata(client, ts);

/* Prepare for touch readings - power down ADC and enable PENIRQ */
tsc2007_xfer(ts, PWRDOWN);

return 0;

err_free_irq:
Expand Down

0 comments on commit 0652ba4

Please sign in to comment.