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 <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2024-10-16 10:29:17 +08:00
parent 443adc0c67
commit e6a2a95fb8

View File

@@ -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),
},
};