[media] exynos4-is: Handle suspend/resume of fimc-is-i2c correctly
authorTomasz Figa <t.figa@samsung.com>
Wed, 26 Jun 2013 13:37:14 +0000 (10:37 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:51:12 +0000 (04:51 -0300)
commitd334ab08e8e1f6907d44c716f852f49076e957ca
tree50600b3b71d4a618b052c15d3713743c5fca8513
parentb82180dba53e71fbc1b08bc8beca75d1dea5e993
[media] exynos4-is: Handle suspend/resume of fimc-is-i2c correctly

If the same callbacks are used for runtime and system suspend/resume,
clocks can get disabled twice, which can lead to negative reference
counts and kernel warnings.
This patch splits suspend/resume callbacks into separate runtime and
system-wide functions, so clock gating is done correctly.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-is-i2c.c