]> err.no Git - linux-2.6/commitdiff
[MTD] Fix SSFDC build for variable blocksize.
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 10 Dec 2006 11:48:54 +0000 (11:48 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 10 Dec 2006 11:48:54 +0000 (11:48 +0000)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/ssfdc.c

index e834cc16c9f997c8feefab76cad2a97d3b0ad867..60a3fba90ab849bc6feb038f51d25b24bed03b8a 100644 (file)
@@ -311,7 +311,6 @@ static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
 
        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,