summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2009-10-08 22:34:46 +0000
committerJohn Crispin <john@openwrt.org>2009-10-08 22:34:46 +0000
commit151a1c789f157adcb100ea5758d26127ae3965dc (patch)
tree7821f466e3bdec046153fe2c8fd9f9884d290744 /target/linux/ifxmips/files
parentaaf52c0c7d2db474a009706cdabc48f6ca90a0aa (diff)
downloadmtk-20170518-151a1c789f157adcb100ea5758d26127ae3965dc.zip
mtk-20170518-151a1c789f157adcb100ea5758d26127ae3965dc.tar.gz
mtk-20170518-151a1c789f157adcb100ea5758d26127ae3965dc.tar.bz2
flash size was reported incorrectly
SVN-Revision: 18011
Diffstat (limited to 'target/linux/ifxmips/files')
-rw-r--r--target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
index 3a3569a..ef256f9 100644
--- a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
+++ b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
@@ -244,7 +244,7 @@ static int ifxmips_mtd_probe(struct platform_device *dev)
add_mtd_partitions(ifxmips_mtd, &ifxmips_meta_partition, 1);
printk(KERN_INFO "ifxmips_mtd: added %s flash with %dMB\n",
- ifxmips_map.name, ifxmips_mtd->size);
+ ifxmips_map.name, ((int)ifxmips_mtd->size) >> 20);
return 0;
}