mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user