diff options
Diffstat (limited to 'drivers/mtd/ubi/eba.c')
-rw-r--r-- | drivers/mtd/ubi/eba.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 2592d1cc288..5fa726f9c1f 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -1167,7 +1167,7 @@ out_unlock_leb: | |||
1167 | * print_rsvd_warning - warn about not having enough reserved PEBs. | 1167 | * print_rsvd_warning - warn about not having enough reserved PEBs. |
1168 | * @ubi: UBI device description object | 1168 | * @ubi: UBI device description object |
1169 | * | 1169 | * |
1170 | * This is a helper function for 'ubi_eba_init_scan()' which is called when UBI | 1170 | * This is a helper function for 'ubi_eba_init()' which is called when UBI |
1171 | * cannot reserve enough PEBs for bad block handling. This function makes a | 1171 | * cannot reserve enough PEBs for bad block handling. This function makes a |
1172 | * decision whether we have to print a warning or not. The algorithm is as | 1172 | * decision whether we have to print a warning or not. The algorithm is as |
1173 | * follows: | 1173 | * follows: |
@@ -1205,14 +1205,14 @@ static void print_rsvd_warning(struct ubi_device *ubi, | |||
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | /** | 1207 | /** |
1208 | * ubi_eba_init_scan - initialize the EBA sub-system using attaching information. | 1208 | * ubi_eba_init - initialize the EBA sub-system using attaching information. |
1209 | * @ubi: UBI device description object | 1209 | * @ubi: UBI device description object |
1210 | * @ai: attaching information | 1210 | * @ai: attaching information |
1211 | * | 1211 | * |
1212 | * This function returns zero in case of success and a negative error code in | 1212 | * This function returns zero in case of success and a negative error code in |
1213 | * case of failure. | 1213 | * case of failure. |
1214 | */ | 1214 | */ |
1215 | int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | 1215 | int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai) |
1216 | { | 1216 | { |
1217 | int i, j, err, num_volumes; | 1217 | int i, j, err, num_volumes; |
1218 | struct ubi_ainf_volume *av; | 1218 | struct ubi_ainf_volume *av; |