aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r--drivers/mtd/ubi/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 5d00364d4a4a..61225f493f6d 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -264,7 +264,7 @@ static int uif_init(struct ubi_device *ubi)
264 int i, err; 264 int i, err;
265 dev_t dev; 265 dev_t dev;
266 266
267 mutex_init(&ubi->vtbl_mutex); 267 mutex_init(&ubi->volumes_mutex);
268 spin_lock_init(&ubi->volumes_lock); 268 spin_lock_init(&ubi->volumes_lock);
269 269
270 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num); 270 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num);