]> git.baikalelectronics.ru Git - kernel.git/commit
[media] exynos-gsc: Fix unbalanced pm_runtime_enable() error
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 19 Jan 2017 22:36:19 +0000 (20:36 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 12:02:17 +0000 (10:02 -0200)
commitc83440b4f0e486da43a19594df9b2cc7eeb7cf66
tree4093d2bad8d85021e52af30aece4b316bb944c2a
parent6e22563f61dde294d74bafc70302c48ae33068c8
[media] exynos-gsc: Fix unbalanced pm_runtime_enable() error

Commit 8ac0d41e60d3 ("[media] exynos-gsc: Fixup clock management at
->remove()") changed the driver's .remove function logic to fist do
a pm_runtime_get_sync() to make sure the device is powered before
attempting to gate the gsc clock.

But the commit also removed a pm_runtime_disable() call that leads
to an unbalanced pm_runtime_enable() error if the driver is removed
and re-probed:

exynos-gsc 13e00000.video-scaler: Unbalanced pm_runtime_enable!
exynos-gsc 13e10000.video-scaler: Unbalanced pm_runtime_enable!

Fixes: 8ac0d41e60d3 ("[media] exynos-gsc: Fixup clock management at ->remove()")
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@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