[media] exynos-gsc: Simplify clock management
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Nov 2016 14:23:50 +0000 (12:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:30:16 +0000 (16:30 -0200)
commitd83db90456d5d1bbf6a73e9cf7848afcdfff205c
treeb0b634402addd32850ad007c83cecfe038ae58f6
parent43e6347f400d8bf8beff56a164c6a7e8c3d0ba5f
[media] exynos-gsc: Simplify clock management

Instead of having separate functions that fetches, prepares and
unprepares the clock, let's encapsulate this code into ->probe().

This makes error handling easier and decreases the lines of code.

[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