summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Yu <davyu@nvidia.com>2013-09-11 20:46:51 +0900
committerGabby Lee <galee@nvidia.com>2013-09-11 23:40:40 -0700
commita1f0baffc0350c3a94e39f5aece9da97d7baf657 (patch)
treea055172279fc2f336fb5af43cd15c5db9b3f1616 /drivers
parent9f42dfc3cda19db08aec5a01ed124789240c4970 (diff)
input: misc: akm8975: fix kernel panic on shutdown
When device is full flashed then reboots, sometimes akm_probe() and akm_shutdown() races. akm_shutdown() release all the resources thus kernel panic can occur in akm_probe(). Change-Id: I4ba2d3fc36dd919306637ec550a098e3f174f159 Signed-off-by: David Yu <davyu@nvidia.com> Reviewed-on: http://git-master/r/273088 Reviewed-by: Gabby Lee <galee@nvidia.com> Tested-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/misc/compass/ak8975_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/compass/ak8975_input.c b/drivers/input/misc/compass/ak8975_input.c
index 55c0c3610d3b..8c888d8874e3 100644
--- a/drivers/input/misc/compass/ak8975_input.c
+++ b/drivers/input/misc/compass/ak8975_input.c
@@ -1384,7 +1384,7 @@ static int akm_remove(struct i2c_client *client)
static void akm_shutdown(struct i2c_client *client)
{
- akm_remove(client);
+ dev_info(&client->dev, "%s\n", __func__);
}
static struct mpu_platform_data *akm_parse_dt(struct i2c_client *client)