diff options
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 59af91b41f9a..a7571508fdab 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -969,8 +969,8 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, | |||
969 | mutex_init(&ubi->ckvol_mutex); | 969 | mutex_init(&ubi->ckvol_mutex); |
970 | mutex_init(&ubi->device_mutex); | 970 | mutex_init(&ubi->device_mutex); |
971 | spin_lock_init(&ubi->volumes_lock); | 971 | spin_lock_init(&ubi->volumes_lock); |
972 | mutex_init(&ubi->fm_mutex); | 972 | init_rwsem(&ubi->fm_protect); |
973 | init_rwsem(&ubi->fm_sem); | 973 | init_rwsem(&ubi->fm_eba_sem); |
974 | 974 | ||
975 | ubi_msg(ubi, "attaching mtd%d", mtd->index); | 975 | ubi_msg(ubi, "attaching mtd%d", mtd->index); |
976 | 976 | ||