Permalink
Browse files

RI #1532: Accelerometer should not be enabled on probe.

Signed-off-by: Matt Isaacs <izzy@buglabs.net>
  • Loading branch information...
1 parent b5bc153 commit 9698d5906666a4f8a2ba67378d316734eb1f7016 Matt Isaacs committed Oct 31, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/input/misc/ml8953.c
@@ -371,7 +371,7 @@ static int __devinit ml8953_i2c_probe(struct i2c_client *client,
input_set_abs_params(input_dev, ABS_X, -ML8953_RANGE, ML8953_RANGE, 3, 3);
input_set_abs_params(input_dev, ABS_Y, -ML8953_RANGE, ML8953_RANGE, 3, 3);
input_set_abs_params(input_dev, ABS_Z, -ML8953_RANGE, ML8953_RANGE, 3, 3);
-
+
error = request_irq(client->irq, ml8953_irq,
IRQF_TRIGGER_FALLING, client->dev.driver->name, ac);
if (error) {
@@ -388,7 +388,7 @@ static int __devinit ml8953_i2c_probe(struct i2c_client *client,
if (error)
goto free_dev_irq;
i2c_set_clientdata(client, ac);
- ml8953_enable(ac);
+ //ml8953_enable(ac);
return 0;
free_dev_irq:
free_irq(client->irq, ac);

0 comments on commit 9698d59

Please sign in to comment.