diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-05-05 09:33:13 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:52:51 -0400 |
commit | 941dfb07ed91451b1c58626a0d258dfdf468b593 (patch) | |
tree | ddee58cc8960994237c83c852227a301dfc8378e /drivers/mtd/ubi/scan.c | |
parent | 4ab60a0d7c92cab16f7e470f80ea039a0b174bce (diff) |
UBI: set correct gluebi device size
In case of static volumes, make emulated MTD device size to
be equivalent to data size, rather then volume size.
Reported-by: John Smith <john@arrows.demon.co.uk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 30d536ee10fc..197cd650356b 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -55,7 +55,7 @@ static int paranoid_check_si(const struct ubi_device *ubi, | |||
55 | static struct ubi_ec_hdr *ech; | 55 | static struct ubi_ec_hdr *ech; |
56 | static struct ubi_vid_hdr *vidh; | 56 | static struct ubi_vid_hdr *vidh; |
57 | 57 | ||
58 | /* | 58 | /** |
59 | * add_to_list - add physical eraseblock to a list. | 59 | * add_to_list - add physical eraseblock to a list. |
60 | * @si: scanning information | 60 | * @si: scanning information |
61 | * @pnum: physical eraseblock number to add | 61 | * @pnum: physical eraseblock number to add |