From 721497a9d3c2b621e6a5a983325544aff27e54a8 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Thu, 29 Nov 2012 14:45:54 -0800 Subject: [PATCH] compat: add gpio header for kernels older than 2.6.24 Just include_next for newer kernels and for older kernels do not do anything. Signed-off-by: Luis R. Rodriguez --- include/linux/gpio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 include/linux/gpio.h diff --git a/include/linux/gpio.h b/include/linux/gpio.h new file mode 100644 index 000000000000..d31e14ee00ba --- /dev/null +++ b/include/linux/gpio.h @@ -0,0 +1,10 @@ +#ifndef _COMPAT_LINUX_GPIO_H +#define _COMPAT_LINUX_GPIO_H 1 + +#include + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) +#include_next +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) */ + +#endif /* _COMPAT_LINUX_GPIO_H */ -- 2.30.2