Skip to content

Commit

Permalink
pm: include EIO from errno-base.h
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rientjes authored and Linus Torvalds committed Apr 30, 2007
1 parent 11443ec commit 14e38ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e38ac

Please sign in to comment.