From e6a2a95fb8d07b08ee0273ff23f5701745250496 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 16 Oct 2024 10:29:17 +0800 Subject: [PATCH] drm/rockchip: dw-dp: Fix build warning for !PM_SLEEP drivers/gpu/drm/rockchip/dw-dp.c:5980:12: error: 'dw_dp_resume' defined but not used [-Werror=unused-function] drivers/gpu/drm/rockchip/dw-dp.c:5970:12: error: 'dw_dp_suspend' defined but not used [-Werror=unused-function] drivers/gpu/drm/rockchip/dw-dp.c:5959:12: error: 'dw_dp_resume_noirq' defined but not used [-Werror=unused-function] drivers/gpu/drm/rockchip/dw-dp.c:5948:12: error: 'dw_dp_suspend_noirq' defined but not used [-Werror=unused-function] Change-Id: Id49b85c3aaee3da324753b089f5c9617cc581113 Signed-off-by: Tao Huang --- drivers/gpu/drm/rockchip/dw-dp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-dp.c b/drivers/gpu/drm/rockchip/dw-dp.c index 910e52dc578e..6c487b615466 100644 --- a/drivers/gpu/drm/rockchip/dw-dp.c +++ b/drivers/gpu/drm/rockchip/dw-dp.c @@ -5997,9 +5997,9 @@ static int dw_dp_resume(struct device *dev) } static const struct dev_pm_ops dw_dp_pm_ops = { - SET_RUNTIME_PM_OPS(dw_dp_runtime_suspend, dw_dp_runtime_resume, NULL) - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(dw_dp_suspend_noirq, dw_dp_resume_noirq) - SET_SYSTEM_SLEEP_PM_OPS(dw_dp_suspend, dw_dp_resume) + RUNTIME_PM_OPS(dw_dp_runtime_suspend, dw_dp_runtime_resume, NULL) + NOIRQ_SYSTEM_SLEEP_PM_OPS(dw_dp_suspend_noirq, dw_dp_resume_noirq) + SYSTEM_SLEEP_PM_OPS(dw_dp_suspend, dw_dp_resume) }; static const struct dw_dp_chip_data rk3588_dp[] = { @@ -6058,6 +6058,6 @@ struct platform_driver dw_dp_driver = { .driver = { .name = "dw-dp", .of_match_table = dw_dp_of_match, - .pm = &dw_dp_pm_ops, + .pm = pm_ptr(&dw_dp_pm_ops), }, };