]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 May 2018 15:50:08 +0000 (17:50 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 28 May 2018 08:47:27 +0000 (10:47 +0200)
commit75be592cd6e478c02201fcb748ecd8c30916a643
tree92e54e2f7b1c6f8f702c8a40d2b2dde76f7ebd34
parent5bb1d7a1cf3670b27a1b1a53c466960556f475bb
drm/sun4i: mark PM functions as __maybe_unused

Disabling CONFIG_PM produces a compile time warning when these
functions are not referenced:

drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1072:12: error: 'sun6i_dsi_runtime_suspend' defined but not used [-Werror=unused-function]
 static int sun6i_dsi_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1043:12: error: 'sun6i_dsi_runtime_resume' defined but not used [-Werror=unused-function]
 static int sun6i_dsi_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 19c919dabc20 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180525155030.3667352-1-arnd@arndb.de
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c