pm: include EIO from errno-base.h
authorDavid Rientjes <[email protected]>
Mon, 30 Apr 2007 22:09:56 +0000 (15:09 -0700)
committerLinus Torvalds <[email protected]>
Mon, 30 Apr 2007 23:40:41 +0000 (16:40 -0700)
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 <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Cc: "Randy.Dunlap" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/pm.h

index 7a516690dcb36e9a07e715c09f1b2732a243dedf..6e8fa3049e5d097fc5f96400350240e5224ca48e 100644 (file)
@@ -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