aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-17 08:36:39 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 13:26:03 -0400
commitd717dc2f85f07f68d313ac4f8f9f460f1e17dee0 (patch)
treec9797a46c3800b79a00106b7a4a3cad720c49452
parentdcd85fdd1040259f0053137f252321faec0a259f (diff)
UBI: rename ubi_scan_rm_volume
The old name is not logical anymore - rename it to 'ubi_remove_av()'. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--drivers/mtd/ubi/scan.c4
-rw-r--r--drivers/mtd/ubi/scan.h2
-rw-r--r--drivers/mtd/ubi/vtbl.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index 767b857f3054..ccf46308fbb6 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -614,11 +614,11 @@ struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai,
614} 614}
615 615
616/** 616/**
617 * ubi_scan_rm_volume - delete attaching information about a volume. 617 * ubi_remove_av - delete attaching information about a volume.
618 * @ai: attaching information 618 * @ai: attaching information
619 * @av: the volume attaching information to delete 619 * @av: the volume attaching information to delete
620 */ 620 */
621void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av) 621void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av)
622{ 622{
623 struct rb_node *rb; 623 struct rb_node *rb;
624 struct ubi_ainf_peb *aeb; 624 struct ubi_ainf_peb *aeb;
diff --git a/drivers/mtd/ubi/scan.h b/drivers/mtd/ubi/scan.h
index b1eeb0bda0e7..7d7e65f11f14 100644
--- a/drivers/mtd/ubi/scan.h
+++ b/drivers/mtd/ubi/scan.h
@@ -161,7 +161,7 @@ int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum,
161 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips); 161 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
162struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai, 162struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai,
163 int vol_id); 163 int vol_id);
164void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); 164void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av);
165struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, 165struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi,
166 struct ubi_attach_info *ai); 166 struct ubi_attach_info *ai);
167struct ubi_attach_info *ubi_scan(struct ubi_device *ubi); 167struct ubi_attach_info *ubi_scan(struct ubi_device *ubi);
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index 0c8c17282c81..cfe3830759bd 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -738,7 +738,7 @@ static int check_scanning_info(const struct ubi_device *ubi,
738 vol = ubi->volumes[i]; 738 vol = ubi->volumes[i];
739 if (!vol) { 739 if (!vol) {
740 if (av) 740 if (av)
741 ubi_scan_rm_volume(ai, av); 741 ubi_remove_av(ai, av);
742 continue; 742 continue;
743 } 743 }
744 744
@@ -756,7 +756,7 @@ static int check_scanning_info(const struct ubi_device *ubi,
756 * these eraseblocks. 756 * these eraseblocks.
757 */ 757 */
758 ubi_msg("finish volume %d removal", av->vol_id); 758 ubi_msg("finish volume %d removal", av->vol_id);
759 ubi_scan_rm_volume(ai, av); 759 ubi_remove_av(ai, av);
760 } else if (av) { 760 } else if (av) {
761 err = check_av(vol, av); 761 err = check_av(vol, av);
762 if (err) 762 if (err)