diff options
Diffstat (limited to 'drivers/mtd/rfd_ftl.c')
-rw-r--r-- | drivers/mtd/rfd_ftl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/rfd_ftl.c b/drivers/mtd/rfd_ftl.c index fa4362fb4dd8..d60cc6696cbd 100644 --- a/drivers/mtd/rfd_ftl.c +++ b/drivers/mtd/rfd_ftl.c | |||
@@ -787,7 +787,6 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) | |||
787 | 787 | ||
788 | if (scan_header(part) == 0) { | 788 | if (scan_header(part) == 0) { |
789 | part->mbd.size = part->sector_count; | 789 | part->mbd.size = part->sector_count; |
790 | part->mbd.blksize = SECTOR_SIZE; | ||
791 | part->mbd.tr = tr; | 790 | part->mbd.tr = tr; |
792 | part->mbd.devnum = -1; | 791 | part->mbd.devnum = -1; |
793 | if (!(mtd->flags & MTD_WRITEABLE)) | 792 | if (!(mtd->flags & MTD_WRITEABLE)) |
@@ -829,6 +828,8 @@ struct mtd_blktrans_ops rfd_ftl_tr = { | |||
829 | .name = "rfd", | 828 | .name = "rfd", |
830 | .major = RFD_FTL_MAJOR, | 829 | .major = RFD_FTL_MAJOR, |
831 | .part_bits = PART_BITS, | 830 | .part_bits = PART_BITS, |
831 | .blksize = SECTOR_SIZE, | ||
832 | |||
832 | .readsect = rfd_ftl_readsect, | 833 | .readsect = rfd_ftl_readsect, |
833 | .writesect = rfd_ftl_writesect, | 834 | .writesect = rfd_ftl_writesect, |
834 | .getgeo = rfd_ftl_getgeo, | 835 | .getgeo = rfd_ftl_getgeo, |