If PM_SLEEP is disabled, we need stub versions of these functions. Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org> --- include/linux/pm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/pm.h b/include/linux/pm.h index 98310eb..02e404b 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -35,9 +35,18 @@ extern void (*pm_idle)(void); extern void (*pm_power_off)(void); extern void (*pm_power_off_prepare)(void); +#ifdef CONFIG_VT_CONSOLE_SLEEP struct device; /* we have a circular dep with device.h */ extern void pm_vt_switch_required(struct device *dev, bool required); extern void pm_vt_switch_unregister(struct device *dev); +#else +static inline void pm_vt_switch_required(struct device *dev, bool required) +{ +} +static inline void pm_vt_switch_unregister(struct device *dev) +{ +} +#endif /* CONFIG_VT_CONSOLE_SLEEP */ /* * Device power management -- 1.7.9.5