compat: add gpio header for kernels older than 2.6.24
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 29 Nov 2012 22:45:54 +0000 (14:45 -0800)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 29 Nov 2012 22:45:54 +0000 (14:45 -0800)
Just include_next for newer kernels and for older
kernels do not do anything.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
include/linux/gpio.h [new file with mode: 0644]

diff --git a/include/linux/gpio.h b/include/linux/gpio.h
new file mode 100644 (file)
index 0000000..d31e14e
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef _COMPAT_LINUX_GPIO_H
+#define _COMPAT_LINUX_GPIO_H 1
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
+#include_next <linux/gpio.h>
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) */
+
+#endif /* _COMPAT_LINUX_GPIO_H */