projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf52c0
)
flash size was reported incorrectly
author
John Crispin
<john@openwrt.org>
Thu, 8 Oct 2009 22:34:46 +0000
(22:34 +0000)
committer
John Crispin
<john@openwrt.org>
Thu, 8 Oct 2009 22:34:46 +0000
(22:34 +0000)
SVN-Revision: 18011
target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
patch
|
blob
|
history
diff --git
a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c
index 3a3569ac8adfb03d9ff44b78ec2f118bc9c281e7..ef256f90b38a716d66970fde6557cd4a6f2c59a6 100644
(file)
--- 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;
}