flash driver shows the correct chip size from now
authorGabor Juhos <juhosg@openwrt.org>
Fri, 13 Jul 2007 16:15:10 +0000 (16:15 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 13 Jul 2007 16:15:10 +0000 (16:15 +0000)
SVN-Revision: 7971

target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120-flash.c

index a60e6e54bc1fef6cc37f9cf42299440b1be8dfc4..021441521d6e0818e6e2bf67d4b2358d016ac5fd 100644 (file)
@@ -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;