aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/tsc2007.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index 3714d19f1027..7ef0d1420d3c 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -319,15 +319,17 @@ static int __devinit tsc2007_probe(struct i2c_client *client,
319 goto err_free_mem; 319 goto err_free_mem;
320 } 320 }
321 321
322 /* Prepare for touch readings - power down ADC and enable PENIRQ */
323 err = tsc2007_xfer(ts, PWRDOWN);
324 if (err < 0)
325 goto err_free_irq;
326
322 err = input_register_device(input_dev); 327 err = input_register_device(input_dev);
323 if (err) 328 if (err)
324 goto err_free_irq; 329 goto err_free_irq;
325 330
326 i2c_set_clientdata(client, ts); 331 i2c_set_clientdata(client, ts);
327 332
328 /* Prepare for touch readings - power down ADC and enable PENIRQ */
329 tsc2007_xfer(ts, PWRDOWN);
330
331 return 0; 333 return 0;
332 334
333 err_free_irq: 335 err_free_irq: