[media] exynos-gsc: Fixup clock management at ->remove()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Nov 2016 14:23:54 +0000 (12:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:32:17 +0000 (16:32 -0200)
commita006c04e6218bb82c11888d9b99ef642bd64cf93
treedc95b779be4dbaf97207a7a9ca2feeb7d07d7ed5
parent81aa8d141f84868f3523eeab6ced4991819e7f18
[media] exynos-gsc: Fixup clock management at ->remove()

To make sure the clock is fully gated in ->remove(), we first need to
to bring the device into full power by invoking pm_runtime_get_sync().

Then, let's both unprepare and disable the clock.

[mszyprow: rebased onto v4.9-rc4]

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos-gsc/gsc-core.c