1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
3 @@ -76,6 +76,12 @@ extern const char *yaffs_guts_c_version;
7 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
8 +#define YPROC_ROOT &proc_root
10 +#define YPROC_ROOT NULL
13 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
14 #define WRITE_SIZE_STR "writesize"
15 #define WRITE_SIZE(mtd) (mtd)->writesize
16 @@ -189,7 +195,9 @@ static void yaffs_read_inode(struct inod
20 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
21 static void yaffs_put_inode(struct inode *inode);
23 static void yaffs_delete_inode(struct inode *);
24 static void yaffs_clear_inode(struct inode *);
26 @@ -293,7 +301,9 @@ static struct super_operations yaffs_sup
27 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25))
28 .read_inode = yaffs_read_inode,
30 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
31 .put_inode = yaffs_put_inode,
33 .put_super = yaffs_put_super,
34 .delete_inode = yaffs_delete_inode,
35 .clear_inode = yaffs_clear_inode,
36 @@ -437,6 +447,7 @@ static struct dentry *yaffs_lookup(struc
40 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
41 /* For now put inode is just for debugging
42 * Put inode is called when the inode **structure** is put.
44 @@ -447,6 +458,7 @@ static void yaffs_put_inode(struct inode
45 atomic_read(&inode->i_count)));
50 /* clear is called to tell the fs to release any per-inode data it holds */
51 static void yaffs_clear_inode(struct inode *inode)
52 @@ -2279,7 +2291,7 @@ static int __init init_yaffs_fs(void)
53 /* Install the proc_fs entry */
54 my_proc_entry = create_proc_entry("yaffs",
60 my_proc_entry->write_proc = yaffs_proc_write;
61 @@ -2325,7 +2337,7 @@ static void __exit exit_yaffs_fs(void)
62 T(YAFFS_TRACE_ALWAYS, ("yaffs " __DATE__ " " __TIME__
65 - remove_proc_entry("yaffs", &proc_root);
66 + remove_proc_entry("yaffs", YPROC_ROOT);
68 fsinst = fs_to_install;