diff options
Diffstat (limited to 'drivers/mtd/ubi')
| -rw-r--r-- | drivers/mtd/ubi/gluebi.c | 1 | ||||
| -rw-r--r-- | drivers/mtd/ubi/scan.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/gluebi.c b/drivers/mtd/ubi/gluebi.c index 95aaac03f938..b5e478fa2661 100644 --- a/drivers/mtd/ubi/gluebi.c +++ b/drivers/mtd/ubi/gluebi.c | |||
| @@ -332,6 +332,7 @@ static int gluebi_create(struct ubi_device_info *di, | |||
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | gluebi->vol_id = vi->vol_id; | 334 | gluebi->vol_id = vi->vol_id; |
| 335 | gluebi->ubi_num = vi->ubi_num; | ||
| 335 | mtd->type = MTD_UBIVOLUME; | 336 | mtd->type = MTD_UBIVOLUME; |
| 336 | if (!di->ro_mode) | 337 | if (!di->ro_mode) |
| 337 | mtd->flags = MTD_WRITEABLE; | 338 | mtd->flags = MTD_WRITEABLE; |
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index f60895ee0aeb..a423131b6171 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
| @@ -781,7 +781,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, | |||
| 781 | return -EINVAL; | 781 | return -EINVAL; |
| 782 | } | 782 | } |
| 783 | 783 | ||
| 784 | image_seq = be32_to_cpu(ech->ec); | 784 | image_seq = be32_to_cpu(ech->image_seq); |
| 785 | if (!si->image_seq_set) { | 785 | if (!si->image_seq_set) { |
| 786 | ubi->image_seq = image_seq; | 786 | ubi->image_seq = image_seq; |
| 787 | si->image_seq_set = 1; | 787 | si->image_seq_set = 1; |
