[media] exynos4-is: Fix error paths in probe() for !pm_runtime_enabled()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 7 Jan 2014 22:07:52 +0000 (19:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 07:58:49 +0000 (05:58 -0200)
commita27a19d61535ce61a1e2f9274f99316c7532d5ef
tree0679111890ce48a7987fd7dfc8bf749c2222c8d9
parenta62cffefc9a327a5bc45ba9318ef601b525f4bd1
[media] exynos4-is: Fix error paths in probe() for !pm_runtime_enabled()

Ensure clk_disable() is called on error paths only when clk_enable()
was previously called.

This fixes following build warning:

.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c: In function 'fimc_lite_probe':
.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c:1583:1: warning: label 'err_sd' defined but not used [-Wunused-label]

Reported-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-core.c
drivers/media/platform/exynos4-is/fimc-lite.c