aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-16 13:00:38 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-26 12:15:15 -0500
commit89b96b69290668351a33b09372ec1c94cb5748e5 (patch)
treecdbb79da1c821f2155815119ded20d181c23c7c2 /drivers/mtd/ubi/build.c
parent77c722dde9975361051c5530475f8f92ed67a506 (diff)
UBI: improve internal interfaces
Pass volume description object to the EBA function which makes more sense, and EBA function do not have to find the volume description object by volume ID. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r--drivers/mtd/ubi/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index b85ca186afc6..5d00364d4a4a 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -249,7 +249,7 @@ static void kill_volumes(struct ubi_device *ubi)
249 249
250 for (i = 0; i < ubi->vtbl_slots; i++) 250 for (i = 0; i < ubi->vtbl_slots; i++)
251 if (ubi->volumes[i]) 251 if (ubi->volumes[i])
252 ubi_free_volume(ubi, i); 252 ubi_free_volume(ubi, ubi->volumes[i]);
253} 253}
254 254
255/** 255/**
@@ -300,7 +300,7 @@ static int uif_init(struct ubi_device *ubi)
300 300
301 for (i = 0; i < ubi->vtbl_slots; i++) 301 for (i = 0; i < ubi->vtbl_slots; i++)
302 if (ubi->volumes[i]) { 302 if (ubi->volumes[i]) {
303 err = ubi_add_volume(ubi, i); 303 err = ubi_add_volume(ubi, ubi->volumes[i]);
304 if (err) { 304 if (err) {
305 ubi_err("cannot add volume %d", i); 305 ubi_err("cannot add volume %d", i);
306 goto out_volumes; 306 goto out_volumes;