diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/build.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index eb8b55dcc3bb..336482a55f84 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -593,8 +593,6 @@ static int attach_mtd_dev(const char *mtd_dev, int vid_hdr_offset, | |||
593 | if (err) | 593 | if (err) |
594 | goto out_detach; | 594 | goto out_detach; |
595 | 595 | ||
596 | ubi_devices_cnt += 1; | ||
597 | |||
598 | ubi_msg("attached mtd%d to ubi%d", ubi->mtd->index, ubi_devices_cnt); | 596 | ubi_msg("attached mtd%d to ubi%d", ubi->mtd->index, ubi_devices_cnt); |
599 | ubi_msg("MTD device name: \"%s\"", ubi->mtd->name); | 597 | ubi_msg("MTD device name: \"%s\"", ubi->mtd->name); |
600 | ubi_msg("MTD device size: %llu MiB", ubi->flash_size >> 20); | 598 | ubi_msg("MTD device size: %llu MiB", ubi->flash_size >> 20); |
@@ -624,6 +622,7 @@ static int attach_mtd_dev(const char *mtd_dev, int vid_hdr_offset, | |||
624 | wake_up_process(ubi->bgt_thread); | 622 | wake_up_process(ubi->bgt_thread); |
625 | } | 623 | } |
626 | 624 | ||
625 | ubi_devices_cnt += 1; | ||
627 | return 0; | 626 | return 0; |
628 | 627 | ||
629 | out_detach: | 628 | out_detach: |