summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerve Codina <Herve.CODINA@celad.com>2014-06-12 11:37:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-23 11:54:11 +0200
commit1507b614f69ceda9b1a2c68314628b3f385147f6 (patch)
treeecb291fc81449b154ceeebba726ab9ffcb6c18bb
parent9c741047ae8dbc404aba049f0f63b89fbd9a5862 (diff)
downloadbarebox-1507b614f69ceda9b1a2c68314628b3f385147f6.tar.gz
mtd: use long long dev param for size
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 d3e7763..82fb5f7 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -401,7 +401,7 @@ int add_mtd_device(struct mtd_info *mtd, char *devname, int device_id)
mtd->cdev.mtd = mtd;
if (IS_ENABLED(CONFIG_PARAMETER)) {
- dev_add_param_int_ro(&mtd->class_dev, "size", mtd->size, "%llu");
+ dev_add_param_llint_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->writesize, "%u");
dev_add_param_int_ro(&mtd->class_dev, "oobsize", mtd->oobsize, "%u");