diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-03-08 08:29:37 -0500 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-03-09 02:39:31 -0500 |
commit | 0ca39d74de8b269fb61eac11b75bd6c3fc887c28 (patch) | |
tree | 928061677e97c85acc8b4d058b20ecb604b376e3 /drivers/mtd/ubi/build.c | |
parent | 43b043e78b876ce27034f167897b57fd2556ad29 (diff) |
UBI: rename peb_buf1 to peb_buf
Now we have only one buffer so let's rename it to just 'peb_buf1'.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 6e0806bff9f7..0fde9fc7d2e5 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -945,8 +945,8 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) | |||
945 | goto out_free; | 945 | goto out_free; |
946 | 946 | ||
947 | err = -ENOMEM; | 947 | err = -ENOMEM; |
948 | ubi->peb_buf1 = vmalloc(ubi->peb_size); | 948 | ubi->peb_buf = vmalloc(ubi->peb_size); |
949 | if (!ubi->peb_buf1) | 949 | if (!ubi->peb_buf) |
950 | goto out_free; | 950 | goto out_free; |
951 | 951 | ||
952 | err = ubi_debugging_init_dev(ubi); | 952 | err = ubi_debugging_init_dev(ubi); |
@@ -1025,7 +1025,7 @@ out_detach: | |||
1025 | out_debugging: | 1025 | out_debugging: |
1026 | ubi_debugging_exit_dev(ubi); | 1026 | ubi_debugging_exit_dev(ubi); |
1027 | out_free: | 1027 | out_free: |
1028 | vfree(ubi->peb_buf1); | 1028 | vfree(ubi->peb_buf); |
1029 | if (ref) | 1029 | if (ref) |
1030 | put_device(&ubi->dev); | 1030 | put_device(&ubi->dev); |
1031 | else | 1031 | else |
@@ -1096,7 +1096,7 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway) | |||
1096 | vfree(ubi->vtbl); | 1096 | vfree(ubi->vtbl); |
1097 | put_mtd_device(ubi->mtd); | 1097 | put_mtd_device(ubi->mtd); |
1098 | ubi_debugging_exit_dev(ubi); | 1098 | ubi_debugging_exit_dev(ubi); |
1099 | vfree(ubi->peb_buf1); | 1099 | vfree(ubi->peb_buf); |
1100 | ubi_msg("mtd%d is detached from ubi%d", ubi->mtd->index, ubi->ubi_num); | 1100 | ubi_msg("mtd%d is detached from ubi%d", ubi->mtd->index, ubi->ubi_num); |
1101 | put_device(&ubi->dev); | 1101 | put_device(&ubi->dev); |
1102 | return 0; | 1102 | return 0; |