drm/komeda: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Jan 2020 21:53:19 +0000 (22:53 +0100)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Fri, 6 Mar 2020 03:25:58 +0000 (11:25 +0800)
commit9803aac7b5508718989e4cde11b854fc01037b01
tree798c628d849eb9c1fb7bbbfd2bb90c625a2f35ba
parente8dca30f7118461d47e1c3510d0e31b277439151
drm/komeda: mark PM functions as __maybe_unused

Without this, we get a couple of warnings when CONFIG_PM
is disabled:

drivers/gpu/drm/arm/display/komeda/komeda_drv.c:156:12: error: 'komeda_rt_pm_resume' defined but not used [-Werror=unused-function]
 static int komeda_rt_pm_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/arm/display/komeda/komeda_drv.c:149:12: error: 'komeda_rt_pm_suspend' defined but not used [-Werror=unused-function]
 static int komeda_rt_pm_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~

Fixes: efb465088518 ("drm/komeda: Add runtime_pm support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107215327.1579195-1-arnd@arndb.de
drivers/gpu/drm/arm/display/komeda/komeda_drv.c