diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-17 05:46:48 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 12:15:15 -0500 |
commit | cae0a77125467c42f0918e78457913ee4a2f925b (patch) | |
tree | 92ce552bb67d6e0d44e1144e08260ea0bbcee80a /drivers/mtd/ubi/build.c | |
parent | 89b96b69290668351a33b09372ec1c94cb5748e5 (diff) |
UBI: tweak volumes locking
Transform vtbl_mutex to volumes_mutex - this just makes code
easier to understand.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 2 |
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); |