From: Gabor Juhos Date: Fri, 13 Jul 2007 16:15:10 +0000 (+0000) Subject: [adm5120] flash driver shows the correct chip size from now X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=52c18ce5e7bfa0ec29339a76811c77b7fcce2b42;hp=23aefeb801783120661c20d2ba0ad9ee37785497;ds=sidebyside [adm5120] flash driver shows the correct chip size from now SVN-Revision: 7971 --- 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;