summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerve Codina <Herve.CODINA@celad.com>2014-06-09 17:14:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-10 08:39:03 +0200
commit0860be223af664ec2417577f6f4f55727f899b16 (patch)
tree1f318100ce8e21b806aaeb1571997be2da0eb217
parente546f6d469ccbc2b155adad1a40a725a5a7e2f2b (diff)
downloadbarebox-0860be223af664ec2417577f6f4f55727f899b16.tar.gz
mtd: Fix writesize parameter value
Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index d954f72..d3e7763 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -403,7 +403,7 @@ int add_mtd_device(struct mtd_info *mtd, char *devname, int device_id)
if (IS_ENABLED(CONFIG_PARAMETER)) {
dev_add_param_int_ro(&mtd->class_dev, "size", mtd->size, "%llu");
dev_add_param_int_ro(&mtd->class_dev, "erasesize", mtd->erasesize, "%u");
- dev_add_param_int_ro(&mtd->class_dev, "writesize", mtd->oobsize, "%u");
+ dev_add_param_int_ro(&mtd->class_dev, "writesize", mtd->writesize, "%u");
dev_add_param_int_ro(&mtd->class_dev, "oobsize", mtd->oobsize, "%u");
}