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 <huangtao@rock-chips.com>
This commit is contained in:
parent
0dc19d1b5f
commit
72bf53173b
1 changed files with 2 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue