1 --- a/fs/yaffs2/yaffs_vfs_glue.c
2 +++ b/fs/yaffs2/yaffs_vfs_glue.c
3 @@ -3036,7 +3036,7 @@ static struct super_block *yaffs_interna
4 YINIT_LIST_HEAD(&(yaffs_dev_to_lc(dev)->searchContexts));
5 param->remove_obj_fn = yaffs_remove_obj_callback;
7 - init_MUTEX(&(yaffs_dev_to_lc(dev)->grossLock));
8 + sema_init(&(yaffs_dev_to_lc(dev)->grossLock), 1);
10 yaffs_gross_lock(dev);
12 @@ -3494,7 +3494,7 @@ static int __init init_yaffs_fs(void)
16 - init_MUTEX(&yaffs_context_lock);
17 + sema_init((&yaffs_context_lock), 1);
19 /* Install the proc_fs entries */
20 my_proc_entry = create_proc_entry("yaffs",