[media] exynos-gsc: fix s2r functionality
authorPrathyush K <prathyush.k@samsung.com>
Wed, 7 Aug 2013 11:53:04 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:25:41 +0000 (09:25 -0300)
commitf9fa906f00388bf326d010f36bc905cbd0b6554f
tree5fd66abbabd067247e675a2cad399348c6f924be
parentae796c78684c1679b82eaafcd236d6fc1de099a2
[media] exynos-gsc: fix s2r functionality

When gsc is in runtime suspended state, there is no need to call
m2m_suspend during suspend and similarly, there is no need to call
m2m_resume during resume if already in runtime suspended state. This
patch adds the necessary conditions to achieve this.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos-gsc/gsc-core.c