projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MTD] Initialise s_flags in get_sb_mtd_aux()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
ssfdc.c
diff --git
a/drivers/mtd/ssfdc.c
b/drivers/mtd/ssfdc.c
index e834cc16c9f997c8feefab76cad2a97d3b0ad867..a5f3d60047d47f50da60ce7b8569ef326542173d 100644
(file)
--- a/
drivers/mtd/ssfdc.c
+++ b/
drivers/mtd/ssfdc.c
@@
-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.mtd = mtd;
ssfdc->mbd.devnum = -1;
- ssfdc->mbd.blksize = SECTOR_SIZE;
ssfdc->mbd.tr = tr;
ssfdc->mbd.readonly = 1;
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,
.name = "ssfdc",
.major = SSFDCR_MAJOR,
.part_bits = SSFDCR_PARTN_BITS,
+ .blksize = SECTOR_SIZE,
.getgeo = ssfdcr_getgeo,
.readsect = ssfdcr_readsect,
.add_mtd = ssfdcr_add_mtd,
.getgeo = ssfdcr_getgeo,
.readsect = ssfdcr_readsect,
.add_mtd = ssfdcr_add_mtd,