Skip to content

Commit 9803aac

Browse files
arndbjamwan
authored andcommitted
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: efb4650 ("drm/komeda: Add runtime_pm support") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: James Qian Wang (Arm Technology China) <[email protected]> Signed-off-by: james qian wang (Arm Technology China) <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e8dca30 commit 9803aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/arm/display/komeda/komeda_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ static const struct of_device_id komeda_of_match[] = {
146146

147147
MODULE_DEVICE_TABLE(of, komeda_of_match);
148148

149-
static int komeda_rt_pm_suspend(struct device *dev)
149+
static int __maybe_unused komeda_rt_pm_suspend(struct device *dev)
150150
{
151151
struct komeda_drv *mdrv = dev_get_drvdata(dev);
152152

153153
return komeda_dev_suspend(mdrv->mdev);
154154
}
155155

156-
static int komeda_rt_pm_resume(struct device *dev)
156+
static int __maybe_unused komeda_rt_pm_resume(struct device *dev)
157157
{
158158
struct komeda_drv *mdrv = dev_get_drvdata(dev);
159159

0 commit comments

Comments
 (0)