Input: adxl34x - do not mark device as disabled on startup
authorMichael Hennerich <Michael.Hennerich@analog.com>
Thu, 5 Aug 2010 17:05:55 +0000 (10:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Aug 2010 17:07:31 +0000 (10:07 -0700)
Do not mark device as desabled on startup - otherwise user must reset
disable sysfs hook before the driver delivers any data.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/adxl34x.c

index e2ca0170808099cedff58def367245f566186123..de5900d50788b91ac78091991d19a888da56da01 100644 (file)
@@ -724,7 +724,6 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
        pdata = &ac->pdata;
 
        ac->input = input_dev;
-       ac->disabled = true;
        ac->dev = dev;
        ac->irq = irq;
        ac->bops = bops;