aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-07-13 16:15:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-07-13 16:15:10 +0000
commit54e329087c27266669b42b5ebecef01e9c146e47 (patch)
tree1af072f19f8327fd4936b7219ded67345fbc6b35 /target/linux/adm5120-2.6/files
parente2b75c370e0e0fa5e8a558d9bd5b034fa9ebe829 (diff)
downloadupstream-54e329087c27266669b42b5ebecef01e9c146e47.tar.gz
upstream-54e329087c27266669b42b5ebecef01e9c146e47.tar.bz2
upstream-54e329087c27266669b42b5ebecef01e9c146e47.zip
flash driver shows the correct chip size from now
SVN-Revision: 7971
Diffstat (limited to 'target/linux/adm5120-2.6/files')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c
index a60e6e54bc..021441521d 100644
--- a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c
+++ b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c
@@ -485,7 +485,7 @@ static int adm5120_flash_probe(struct platform_device *dev)
}
MAP_INFO(map, "found at 0x%lX, size:%ldKiB, width:%d bits\n",
- (unsigned long)map->phys, (unsigned long)map->size >> 10,
+ (unsigned long)map->phys, (unsigned long)info->mtd->size >> 10,
map->bankwidth*8);
info->mtd->owner = THIS_MODULE;