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

Top Page
Attachments:
Message as email
+ (text/plain)
+ 02-remove-obsoleted-includes.diff (text/plain)
Delete this message
Reply to this message
Author: Luc Van Oostenryck
Date:  
To: yaffs
Old-Topics: [Yaffs] [PATCH YAFFS2 0/15] Pending patches.
Subject: [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>