From: Luis R. Rodriguez Date: Mon, 11 Jan 2010 17:56:43 +0000 (-0800) Subject: Add few missing misc defines for compilation on 2.6.25 X-Git-Tag: next-20100113~31 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3f72956504fbcccda61ed875501eeee0f6e4618d;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git Add few missing misc defines for compilation on 2.6.25 Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.25.h b/include/linux/compat-2.6.25.h index 23cf487..d876be8 100644 --- a/include/linux/compat-2.6.25.h +++ b/include/linux/compat-2.6.25.h @@ -13,8 +13,21 @@ #include #include #include +#include #include +/* + * 2.6.25 adds PM_EVENT_HIBERNATE as well here but + * we don't have this on <= 2.6.23) + */ +#define PM_EVENT_SLEEP (PM_EVENT_SUSPEND) + +/* Although we don't care about wimax this is needed for rfkill input stuff */ +#define KEY_WIMAX 246 + +/* Although pm_qos stuff is not implemented on <= 2.6.24 lets keep the define */ +#define PM_QOS_DEFAULT_VALUE -1 + #define __WARN(foo) dump_stack() #define dev_emerg(dev, format, arg...) \