[Yaffs] [PATCH YAFFS2 02/15] remove-obsoleted-includes

Luc Van Oostenryck luc.vanoostenryck at looxix.net
Wed Jul 27 23:59:59 BST 2005


Remove #include of header files obsoleted in Linux-2.6.




-- Luc Van Oostenryck
-------------- next part --------------
diff --git a/fs/yaffs2/mtdemul/nandemul2k.c b/fs/yaffs2/mtdemul/nandemul2k.c
--- a/fs/yaffs2/mtdemul/nandemul2k.c
+++ b/fs/yaffs2/mtdemul/nandemul2k.c
@@ -27,7 +27,9 @@
 #include <linux/mtd/mtd.h>
 #include <linux/interrupt.h>
 #include <linux/string.h>
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
 #include <linux/locks.h>
+#endif
 
 #include <asm/uaccess.h>
 #include <linux/mtd/mtd.h>



More information about the yaffs mailing list