summaryrefslogtreecommitdiff
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorSridhar Lavu <slavu@nvidia.com>2013-10-17 11:17:27 -0700
committerMitch Luban <mluban@nvidia.com>2013-10-17 14:44:17 -0700
commitc170fb92e426df24819858ec74f6fe6f355788fc (patch)
tree09588dd618c916ab78bfca978b6bea54603c9187 /drivers/input/misc
parent25b6578859ad11aaf037d2344b884bd6fe045834 (diff)
Revert "input: sensor: compass: Add sec-salve-id for compass"
This reverts commit a5d457ed40342736b059ab66e68839d9b901df6c since this may be causing sanity regressions. Bug 1356943 - original change Bug 1390642 - sanity regression Change-Id: I40a9ff951ebb81df6f3e44603e2f34097fa653d0 Signed-off-by: Sridhar Lavu <slavu@nvidia.com> Reverts-what-was-Reviewed-on: http://git-master/r/290021 Reviewed-on: http://git-master/r/300656 Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/compass/ak8975_input.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/input/misc/compass/ak8975_input.c b/drivers/input/misc/compass/ak8975_input.c
index c3f6a7cf8057..2286536e37bd 100644
--- a/drivers/input/misc/compass/ak8975_input.c
+++ b/drivers/input/misc/compass/ak8975_input.c
@@ -1429,12 +1429,6 @@ static struct mpu_platform_data *akm_parse_dt(struct i2c_client *client)
return ERR_PTR(-EINVAL);
}
- if (of_property_read_u32(np, "sec-slave-id",
- &pdata->sec_slave_id) < 0) {
- dev_err(&client->dev, "Cannot read sec-slave-id\n");
- return ERR_PTR(-EINVAL);
- }
-
return pdata;
}
@@ -1478,11 +1472,6 @@ static int akm_probe(struct i2c_client *client,
if (err)
goto akm_probe_err;
- if (!inf->initd)
- err = akm_init_hw(inf);
- if (err)
- goto akm_probe_err;
-
inf->wq = create_singlethread_workqueue(AKM_NAME);
if (!inf->wq) {
dev_err(&client->dev, "%s workqueue ERR\n", __func__);