From: David Rientjes Date: Mon, 30 Apr 2007 22:09:56 +0000 (-0700) Subject: pm: include EIO from errno-base.h X-Git-Tag: v2.6.22-rc1~1095 X-Git-Url: http://git.rot13.org/?p=powerpc.git;a=commitdiff_plain;h=14e38ac823b7b25e3f4e563c182f93fde78167d6 pm: include EIO from errno-base.h For backwards compatibility, call_platform_enable_wakeup() can return 0 instead of -EIO since we aren't guaranteed to have errno defined. Cc: David Brownell Signed-off-by: David Rientjes Cc: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/pm.h b/include/linux/pm.h index 7a516690dc..6e8fa3049e 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -332,7 +332,7 @@ static inline void dpm_runtime_resume(struct device * dev) static inline int call_platform_enable_wakeup(struct device *dev, int is_on) { - return -EIO; + return 0; } #endif