diff options
Diffstat (limited to 'drivers/mtd/ftl.c')
-rw-r--r-- | drivers/mtd/ftl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c index 8a878b34eca0..da39355132d8 100644 --- a/drivers/mtd/ftl.c +++ b/drivers/mtd/ftl.c | |||
@@ -1054,7 +1054,7 @@ static void ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) | |||
1054 | le32_to_cpu(partition->header.FormattedSize) >> 10); | 1054 | le32_to_cpu(partition->header.FormattedSize) >> 10); |
1055 | #endif | 1055 | #endif |
1056 | partition->mbd.size = le32_to_cpu(partition->header.FormattedSize) >> 9; | 1056 | partition->mbd.size = le32_to_cpu(partition->header.FormattedSize) >> 9; |
1057 | partition->mbd.blksize = SECTOR_SIZE; | 1057 | |
1058 | partition->mbd.tr = tr; | 1058 | partition->mbd.tr = tr; |
1059 | partition->mbd.devnum = -1; | 1059 | partition->mbd.devnum = -1; |
1060 | if (!add_mtd_blktrans_dev((void *)partition)) | 1060 | if (!add_mtd_blktrans_dev((void *)partition)) |
@@ -1076,6 +1076,7 @@ struct mtd_blktrans_ops ftl_tr = { | |||
1076 | .name = "ftl", | 1076 | .name = "ftl", |
1077 | .major = FTL_MAJOR, | 1077 | .major = FTL_MAJOR, |
1078 | .part_bits = PART_BITS, | 1078 | .part_bits = PART_BITS, |
1079 | .blksize = SECTOR_SIZE, | ||
1079 | .readsect = ftl_readsect, | 1080 | .readsect = ftl_readsect, |
1080 | .writesect = ftl_writesect, | 1081 | .writesect = ftl_writesect, |
1081 | .getgeo = ftl_getgeo, | 1082 | .getgeo = ftl_getgeo, |