drm/exynos: fix building without CONFIG_PM_SLEEP
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Nov 2015 15:08:36 +0000 (16:08 +0100)
committerInki Dae <inki.dae@samsung.com>
Mon, 1 Feb 2016 04:09:36 +0000 (13:09 +0900)
commite0fea7e7b63108b31c043df0d5754bbd666d05c6
tree325f85a79baef6d92688cc35643ca259a8053d42
parentd8b8eb829d4c30cd1e41a1ddc308a0e7c22169da
drm/exynos: fix building without CONFIG_PM_SLEEP

The runtime PM operations use the suspend/resume functions
even when CONFIG_PM_SLEEP is not set, but this now fails
for the exynos DRM driver:

exynos_mixer.c:1289:61: error: 'exynos_mixer_resume' undeclared here (not in a function)
  SET_RUNTIME_PM_OPS(exynos_mixer_suspend, exynos_mixer_resume, NULL)

This removes the #ifdef and instead marks the functions as
__maybe_unused, which does the right thing in all cases and
also looks nicer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c