summaryrefslogtreecommitdiff
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2016-06-14 17:23:22 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-15 02:26:04 +0300
commitca5f2b4c4fb7bb7397317ee2ead83485aa295a3e (patch)
tree8c08c9bbea56cd80a1849d532a938b5e6eae673e /include/linux/suspend.h
parent678309117768e25751594a48a2d873b0552a3130 (diff)
downloadlinux-ca5f2b4c4fb7bb7397317ee2ead83485aa295a3e.tar.xz
PM / sleep: Make pm_prepare_console() return void
Nothing is using its return value so change it to return void. No functionality change. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r--include/linux/suspend.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 8b6ec7ef0854..7693e39b14fe 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -18,12 +18,11 @@ static inline void pm_set_vt_switch(int do_switch)
#endif
#ifdef CONFIG_VT_CONSOLE_SLEEP
-extern int pm_prepare_console(void);
+extern void pm_prepare_console(void);
extern void pm_restore_console(void);
#else
-static inline int pm_prepare_console(void)
+static inline void pm_prepare_console(void)
{
- return 0;
}
static inline void pm_restore_console(void)