summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorPreetham Chandru R <pchandru@nvidia.com>2013-01-31 11:06:58 +0530
committerMatthew Pedro <mapedro@nvidia.com>2013-01-31 10:26:52 -0800
commit9f91433d1807ec7daa4a5672b3c2669d27ee28b2 (patch)
tree42153fa420e35133470d162532b2405c3e6a4f55 /drivers/staging
parente722b2e725a3fd413fc4da578f2b45300d0bfd7e (diff)
staging: iio: light: isl29028: appropriately set interrupt flag
set is_int_enable to true only if we register for a irq. Bug 1211260 Change-Id: I603efe721796db70d504da7999e5d7939d45d13a Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/193047 (cherry picked from commit 8b89b2b64c67d80fcfc29cd4f6a92d4527e70df9) Reviewed-on: http://git-master/r/195844 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/iio/light/isl29028.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 0b1d2f2f73aa..5874c32958d9 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -1193,9 +1193,9 @@ static int __devinit isl29028_probe(struct i2c_client *client,
"error %d\n", chip->irq, err);
goto exit_free;
}
+ chip->is_int_enable = true;
}
- chip->is_int_enable = true;
chip->indio_dev = iio_allocate_device(0);
if (!chip->indio_dev) {
dev_err(&client->dev, "iio allocation fails\n");