From f703397c588ec7e4ece70dc6144b3fef2cd85a6a Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 13 Jul 2007 16:15:10 +0000 Subject: [adm5120] flash driver shows the correct chip size from now git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7971 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux') 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; -- cgit v1.2.3