From: Hauke Mehrtens Date: Sun, 19 Sep 2010 17:42:11 +0000 (-0700) Subject: compat: pcmcia/cs.h is removed form new kernels X-Git-Tag: v2.6.37-rc1-1~14 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1594b0d57d4fb20d8518d138f56a121cab78f1c8;p=~emulex%2Ffor-vlad%2Fcompat.git compat: pcmcia/cs.h is removed form new kernels On older kernel versions we have to include pcmcia/cs_types.h and pcmcia/cs.h before pcmcia/cistpl.h. Signed-off-by: Hauke Mehrtens --- diff --git a/include/pcmcia/cistpl.h b/include/pcmcia/cistpl.h new file mode 100644 index 0000000..789dc59 --- /dev/null +++ b/include/pcmcia/cistpl.h @@ -0,0 +1,10 @@ +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) +#include +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) +#include +#endif + +#include_next diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h deleted file mode 100644 index 1c5e0fa..0000000 --- a/include/pcmcia/cs.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _COMPAT_PCMCIA_CS_H -#define _COMPAT_PCMCIA_CS_H -#include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) -#include -#endif - -#include_next -#endif