[MTD] Fix SSFDC build for variable blocksize.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Dec 10 06:59:02 EST 2006


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=db06e2a93ff73270e0053c37c88073094e77913d
Commit:     db06e2a93ff73270e0053c37c88073094e77913d
Parent:     dffbc42b5adfc77a4165de9f170304eb596de3f4
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sun Dec 10 11:48:54 2006 +0000
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Dec 10 11:48:54 2006 +0000

    [MTD] Fix SSFDC build for variable blocksize.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/ssfdc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/ssfdc.c b/drivers/mtd/ssfdc.c
index e834cc1..60a3fba 100644
--- a/drivers/mtd/ssfdc.c
+++ b/drivers/mtd/ssfdc.c
@@ -311,7 +311,6 @@ static void ssfdcr_add_mtd(struct mtd_bl
 
 	ssfdc->mbd.mtd = mtd;
 	ssfdc->mbd.devnum = -1;
-	ssfdc->mbd.blksize = SECTOR_SIZE;
 	ssfdc->mbd.tr = tr;
 	ssfdc->mbd.readonly = 1;
 
@@ -446,6 +445,7 @@ static struct mtd_blktrans_ops ssfdcr_tr
 	.name		= "ssfdc",
 	.major		= SSFDCR_MAJOR,
 	.part_bits	= SSFDCR_PARTN_BITS,
+	.blksize	= SECTOR_SIZE;
 	.getgeo		= ssfdcr_getgeo,
 	.readsect	= ssfdcr_readsect,
 	.add_mtd	= ssfdcr_add_mtd,



More information about the linux-mtd-cvs mailing list