From 72bf53173bdd91a5383262f3eb87894d7623aee9 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 16 Oct 2024 10:58:46 +0800 Subject: [PATCH] input: touchscreen: parade: Fix build error for !PM_SLEEP drivers/input/touchscreen/parade/pt_core.c:10591:28: error: 'pt_core_rt_suspend' undeclared here (not in a function) drivers/input/touchscreen/parade/pt_core.c:10591:48: error: 'pt_core_rt_resume' undeclared here (not in a function) drivers/input/touchscreen/parade/pt_core.c:17046:28: error: 'pt_core_ebc_resume' undeclared (first use in this function) drivers/input/touchscreen/parade/pt_core.c:17047:29: error: 'pt_core_ebc_suspend' undeclared (first use in this function); did you mean 'pt_early_suspend'? Change-Id: Id9594b26941f80d16d13195cf0d8c0e9d5187f9b Signed-off-by: Tao Huang --- drivers/input/touchscreen/parade/pt_core.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/parade/pt_core.c b/drivers/input/touchscreen/parade/pt_core.c index 97a7c452e3ab..c91650ed40b0 100644 --- a/drivers/input/touchscreen/parade/pt_core.c +++ b/drivers/input/touchscreen/parade/pt_core.c @@ -10312,7 +10312,6 @@ static void pt_enum_work_function(struct work_struct *work) #if defined(CONFIG_PM_RUNTIME) || defined(KERNEL_VER_GT_3_19) /* CONFIG_PM_RUNTIME option is removed in 3.19.0 */ -#if defined(CONFIG_PM_SLEEP) /******************************************************************************* * FUNCTION: pt_core_rt_suspend * @@ -10369,10 +10368,8 @@ static int pt_core_rt_resume(struct device *dev) return 0; } -#endif /* CONFIG_PM_SLEEP */ #endif /* CONFIG_PM_RUNTIME || LINUX_VERSION_CODE */ -#if defined(CONFIG_PM_SLEEP) /******************************************************************************* * FUNCTION: pt_core_suspend_ * @@ -10544,7 +10541,6 @@ static int pt_core_ebc_resume(struct tp_device *tp_d) return pt_core_resume_(dev); } -#endif #ifdef NEED_SUSPEND_NOTIFIER /******************************************************************************* @@ -10587,8 +10583,8 @@ static int pt_pm_notifier(struct notifier_block *nb, #endif const struct dev_pm_ops pt_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(pt_core_suspend, pt_core_resume) - SET_RUNTIME_PM_OPS(pt_core_rt_suspend, pt_core_rt_resume, + SYSTEM_SLEEP_PM_OPS(pt_core_suspend, pt_core_resume) + RUNTIME_PM_OPS(pt_core_rt_suspend, pt_core_rt_resume, NULL) }; EXPORT_SYMBOL_GPL(pt_pm_ops);