]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
Add few missing misc defines for compilation on 2.6.25
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 17:56:43 +0000 (09:56 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 17:56:43 +0000 (09:56 -0800)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.25.h

index 23cf487617ef398bb648cebb0d8f4580cb8c8352..d876be8243a47d07e61d8140ef58d2e9eacb483e 100644 (file)
 #include <linux/leds.h>
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
+#include <linux/pm.h>
 #include <asm-generic/bug.h>
 
+/*
+ * 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...)          \