[media] exynos-gsc: Make PM callbacks available conditionally
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Nov 2016 10:27:32 +0000 (08:27 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:31:54 +0000 (16:31 -0200)
commit81aa8d141f84868f3523eeab6ced4991819e7f18
tree8bfe2cd06117a2e62eca00ca5906a5915f8edef6
parent15f90ab57acc318a90578a2e05b7b450e0e3cfe0
[media] exynos-gsc: Make PM callbacks available conditionally

There are no need to set up the PM callbacks (runtime and system) unless
they are being used. It also causes compiler warnings about unused
functions.

Silence the warnings by making them available for CONFIG_PM (runtime
callbacks) and CONFIG_PM_SLEEP (system sleep callbacks).

[mszyprow: squashed two patches into one to avoid potential build
break, changed patch subject and updated commit message]

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-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