diff options
author | Richard Purdie <rpurdie@openedhand.com> | 2006-10-27 04:09:33 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-11-28 17:27:47 -0500 |
commit | 191876729901d0c8dab8a331f9a1e4b73a56457b (patch) | |
tree | 1e25eb24ac84c09b0300e32eea55b33adc567015 /drivers/mtd/nftlcore.c | |
parent | 90afffc8bd79d130b58acd18f972ce4e00b8e20f (diff) |
[MTD] Allow variable block sizes in mtd_blkdevs
Currently, mtd_blkdevs enforces a block size of 512, even if the drivers
can seemingly request a different size. This patch fixes mtd_blkdevs so
block sizes other than 512 work correctly.
Signed-off-by: Richard Purdie <rpurdie@openedhand.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nftlcore.c')
-rw-r--r-- | drivers/mtd/nftlcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c index b5a5f8da4722..d974adab3492 100644 --- a/drivers/mtd/nftlcore.c +++ b/drivers/mtd/nftlcore.c | |||
@@ -67,7 +67,7 @@ static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) | |||
67 | 67 | ||
68 | nftl->mbd.mtd = mtd; | 68 | nftl->mbd.mtd = mtd; |
69 | nftl->mbd.devnum = -1; | 69 | nftl->mbd.devnum = -1; |
70 | nftl->mbd.blksize = 512; | 70 | |
71 | nftl->mbd.tr = tr; | 71 | nftl->mbd.tr = tr; |
72 | 72 | ||
73 | if (NFTL_mount(nftl) < 0) { | 73 | if (NFTL_mount(nftl) < 0) { |
@@ -797,6 +797,7 @@ static struct mtd_blktrans_ops nftl_tr = { | |||
797 | .name = "nftl", | 797 | .name = "nftl", |
798 | .major = NFTL_MAJOR, | 798 | .major = NFTL_MAJOR, |
799 | .part_bits = NFTL_PARTN_BITS, | 799 | .part_bits = NFTL_PARTN_BITS, |
800 | .blksize = 512, | ||
800 | .getgeo = nftl_getgeo, | 801 | .getgeo = nftl_getgeo, |
801 | .readsect = nftl_readblock, | 802 | .readsect = nftl_readblock, |
802 | #ifdef CONFIG_NFTL_RW | 803 | #ifdef CONFIG_NFTL_RW |