else {
if (!mtd->erasesize) {
printk(KERN_WARNING PREFIX "please provide block_size");
- return;
- }
- else
+ goto out;
+ } else
part->block_size = mtd->erasesize;
}
if (scan_header(part) == 0) {
part->mbd.size = part->sector_count;
- part->mbd.blksize = SECTOR_SIZE;
part->mbd.tr = tr;
part->mbd.devnum = -1;
if (!(mtd->flags & MTD_WRITEABLE))
if (!add_mtd_blktrans_dev((void*)part))
return;
}
-
+out:
kfree(part);
}
.name = "rfd",
.major = RFD_FTL_MAJOR,
.part_bits = PART_BITS,
+ .blksize = SECTOR_SIZE,
+
.readsect = rfd_ftl_readsect,
.writesect = rfd_ftl_writesect,
.getgeo = rfd_ftl_getgeo,