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

Startseite
Anhänge:
Nachricht
+ (text/plain)
+ 02-remove-obsoleted-includes.diff (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Luc Van Oostenryck
Datum:  
To: yaffs
Alte Treads: [Yaffs] [PATCH YAFFS2 0/15] Pending patches.
Betreff: [Yaffs] [PATCH YAFFS2 02/15] remove-obsoleted-includes
Remove #include of header files obsoleted in Linux-2.6.




-- Luc Van Oostenryck
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>