diff driver/pt1_i2c.c @ 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 b8032e8099de
children 1e7718cc2556
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>