diff --git a/lsi6_lib.c b/lsi6_lib.c index b83d205..b4333fe 100644 --- a/lsi6_lib.c +++ b/lsi6_lib.c @@ -9,7 +9,10 @@ #include <linux/version.h> #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) #include <asm/system.h> +#endif + #include <asm/io.h> #include <asm/irq.h> #include <asm/uaccess.h> diff --git a/lsi6_main.c b/lsi6_main.c index 0d8f49e..a73ce07 100644 --- a/lsi6_main.c +++ b/lsi6_main.c @@ -11,7 +11,10 @@ #include <linux/version.h> #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) #include <asm/system.h> +#endif + #include <asm/io.h> #include <asm/irq.h> #include <asm/uaccess.h>