Mercurial > pt1
changeset 131:2dc994610477
kernel 3.4.x no longer has asm/system.h
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 27 Jun 2012 06:42:55 +0900 |
parents | d49174955c7f |
children | 9783d247d1c9 |
files | driver/pt1_i2c.c driver/pt1_pci.c driver/pt1_tuner.c driver/pt1_tuner_data.c |
diffstat | 4 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/driver/pt1_i2c.c Tue Mar 20 00:54:35 2012 +0900 +++ b/driver/pt1_i2c.c Wed Jun 27 06:42:55 2012 +0900 @@ -9,8 +9,11 @@ #include <linux/interrupt.h> #include <linux/mutex.h> #include <linux/sched.h> +#include <linux/version.h> +#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>
--- a/driver/pt1_pci.c Tue Mar 20 00:54:35 2012 +0900 +++ b/driver/pt1_pci.c Wed Jun 27 06:42:55 2012 +0900 @@ -9,13 +9,16 @@ #include <linux/pci.h> #include <linux/init.h> #include <linux/interrupt.h> +#include <linux/version.h> +#include <linux/mutex.h> +#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> -#include <linux/version.h> -#include <linux/mutex.h> + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #include <linux/freezer.h> #else
--- a/driver/pt1_tuner.c Tue Mar 20 00:54:35 2012 +0900 +++ b/driver/pt1_tuner.c Wed Jun 27 06:42:55 2012 +0900 @@ -7,8 +7,11 @@ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/mutex.h> +#include <linux/version.h> +#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>
--- a/driver/pt1_tuner_data.c Tue Mar 20 00:54:35 2012 +0900 +++ b/driver/pt1_tuner_data.c Wed Jun 27 06:42:55 2012 +0900 @@ -5,8 +5,11 @@ #include <linux/pci.h> #include <linux/init.h> #include <linux/interrupt.h> +#include <linux/version.h> +#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>