input: misc: akm8975: fix kernel panic on shutdown
authorDavid Yu <davyu@nvidia.com>
Wed, 11 Sep 2013 11:46:51 +0000 (20:46 +0900)
committerGabby Lee <galee@nvidia.com>
Mon, 7 Oct 2013 05:33:47 +0000 (22:33 -0700)
commit9b8bdb4fb7dfa43dfd8c0f251ae383d15c12172b
tree4c73b64772092cfdfc283377ed4897886d3cf95e
parent89e79b04bdd82534acc9e1101831c936c9154eac
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>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/273088
(cherry picked from commit a1f0baffc0350c3a94e39f5aece9da97d7baf657)
Reviewed-on: http://git-master/r/280965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
drivers/input/misc/compass/ak8975_input.c