drivers: platform: tegra: camera: shutdown event
authorCharlie Huang <chahuang@nvidia.com>
Fri, 16 May 2014 23:05:04 +0000 (16:05 -0700)
committerMitch Luban <mluban@nvidia.com>
Mon, 26 May 2014 06:58:35 +0000 (23:58 -0700)
commitc4a86a3b83dd0e71026b68e410b45897e7e284fc
tree87b50e9261cf1022dfa674d979e67b3314dd1aa1
parente08dc61d3bf1614996c54cd8707cdf2142b6cd7c
drivers: platform: tegra: camera: shutdown event

implement shutdown/suspend/resume functions to avoid i2c failures.
add atomic cam_ref to prevent the conflict scenario of system
shutdown but the user space still atempt to access the driver.

bug 1503230

Change-Id: I3fe58b49c1391dcc312f096c307a0849b829689a
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/411093
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/media/platform/tegra/camera.c