misc: nct1008: modify shutdown functionality
authorGaurav Batra <gbatra@nvidia.com>
Tue, 26 Feb 2013 21:59:10 +0000 (13:59 -0800)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 1 Mar 2013 20:48:51 +0000 (12:48 -0800)
commit222803679bc5c9fc65f85d9993423ca8c6768140
tree0925aec586374b7e91e2b2acf9fbb694c3c9a00c
parentbcc4f43c55833d53c81045f5af3d5fcb3534934e
misc: nct1008: modify shutdown functionality

Bug 1234272

The shutdown function acquires the lock and waits on
the worker function to finish which itself needs the lock.
This results in the deadlock. Moved the lock call after
the wait on workers to finish.

Change-Id: I894d6b7342f9d42d86946d592ce912ddb0e476d9
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/204282
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/nct1008.c