--- zzzz-none-000/linux-2.6.28.10/drivers/mtd/maps/plat-ram.c 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/drivers/mtd/maps/plat-ram.c 2011-06-07 13:44:34.000000000 +0000 @@ -173,11 +173,11 @@ (unsigned long long)res->start); /* setup map parameters */ + /*--- printk("[%s] map.name %s res.start 0x%x res.end 0x%x\n", __FUNCTION__, pdata->mapname, res->start, res->end); ---*/ info->map.phys = res->start; info->map.size = (res->end - res->start) + 1; - info->map.name = pdata->mapname != NULL ? - (char *)pdata->mapname : (char *)pdev->name; + info->map.name = pdata->mapname != NULL ? (char *)pdata->mapname : (char *)pdev->name; info->map.bankwidth = pdata->bankwidth; /* register our usage of the memory area */ @@ -210,12 +210,14 @@ if (pdata->map_probes) { const char **map_probes = pdata->map_probes; - for ( ; !info->mtd && *map_probes; map_probes++) + for ( ; !info->mtd && *map_probes; map_probes++) { info->mtd = do_map_probe(*map_probes , &info->map); + } } /* fallback to map_ram */ - else + else { info->mtd = do_map_probe("map_ram", &info->map); + } if (info->mtd == NULL) { dev_err(&pdev->dev, "failed to probe for map_ram\n");