Arnd Bergmann 7e17510018 drm: exynos: mark pm functions as __maybe_unused
The rework of the exynos DRM clock handling introduced
warnings for configurations that have CONFIG_PM disabled:

drivers/gpu/drm/exynos/exynos_hdmi.c:736:13: error: 'hdmi_clk_disable_gates' defined but not used [-Werror=unused-function]
 static void hdmi_clk_disable_gates(struct hdmi_context *hdata)
             ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/exynos/exynos_hdmi.c:717:12: error: 'hdmi_clk_enable_gates' defined but not used [-Werror=unused-function]
 static int hdmi_clk_enable_gates(struct hdmi_context *hdata)

The problem is that the PM functions themselves are inside of
an #ifdef, but some functions they call are not.

This patch removes the #ifdef and instead marks the PM functions
as __maybe_unused, which is a more reliable way to get it right.

Link: https://patchwork.kernel.org/patch/8436281/
Fixes: 9be7e9898444 ("drm/exynos/hdmi: clock code re-factoring")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2017-07-27 09:24:03 +09:00
..
2017-05-31 10:57:08 +02:00
2017-07-09 18:48:37 -07:00
2017-07-09 18:48:37 -07:00
2017-05-30 15:54:15 +10:00
2017-06-16 13:58:27 +10:00
2017-06-16 13:58:27 +10:00
2017-07-09 18:48:37 -07:00
2017-06-27 08:28:30 +10:00
2017-05-30 15:54:15 +10:00
2017-05-31 10:48:58 +02:00
2017-06-16 10:02:35 +10:00
2017-06-27 08:28:30 +10:00
2017-05-31 10:30:38 +02:00
2017-05-18 17:22:39 +02:00
2017-05-29 20:57:25 +02:00
2017-06-16 13:58:27 +10:00
2017-06-27 08:28:30 +10:00
2017-03-24 09:36:06 +01:00
2017-06-14 12:10:22 +10:00
2017-05-18 17:22:39 +02:00
2017-07-09 18:48:37 -07:00
2017-07-09 18:48:37 -07:00
2017-02-28 16:14:53 +01:00
2017-03-09 16:18:02 +01:00
2017-03-14 14:38:33 +01:00