diff options
Diffstat (limited to 'drivers/mtd/mtdblock.c')
-rw-r--r-- | drivers/mtd/mtdblock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c index 04ed34694b14..a052648f6e31 100644 --- a/drivers/mtd/mtdblock.c +++ b/drivers/mtd/mtdblock.c | |||
@@ -348,7 +348,7 @@ static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) | |||
348 | 348 | ||
349 | dev->mtd = mtd; | 349 | dev->mtd = mtd; |
350 | dev->devnum = mtd->index; | 350 | dev->devnum = mtd->index; |
351 | dev->blksize = 512; | 351 | |
352 | dev->size = mtd->size >> 9; | 352 | dev->size = mtd->size >> 9; |
353 | dev->tr = tr; | 353 | dev->tr = tr; |
354 | 354 | ||
@@ -368,6 +368,7 @@ static struct mtd_blktrans_ops mtdblock_tr = { | |||
368 | .name = "mtdblock", | 368 | .name = "mtdblock", |
369 | .major = 31, | 369 | .major = 31, |
370 | .part_bits = 0, | 370 | .part_bits = 0, |
371 | .blksize = 512, | ||
371 | .open = mtdblock_open, | 372 | .open = mtdblock_open, |
372 | .flush = mtdblock_flush, | 373 | .flush = mtdblock_flush, |
373 | .release = mtdblock_release, | 374 | .release = mtdblock_release, |