X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/015aed13171ff6201459286e15fc5e0686a46907..ae505386e5e915bcd43f9f178f379da4a5df9cad:/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c?ds=sidebyside 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 a60e6e54b..021441521 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;