diff options
author | Michal Simek <monstr@monstr.eu> | 2010-09-29 15:52:13 +1000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-09-29 15:28:14 +0900 |
commit | 2548558445b43c1f18a61c0bd3629f92dffa612e (patch) | |
tree | eabc0c5ea0d82f703225520a8545b5b4e341ced4 /drivers/mtd/maps | |
parent | a04e78b8579272c37c42a9badb6dae71f38fe4a9 (diff) |
of: MTD: Fix OF probing on little-endian systems
Convert big-endian DTB to little-endian if necessary.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index fe63f6bd663..ec3edf6e68b 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -294,7 +294,7 @@ static int __devinit of_flash_probe(struct platform_device *dev, info->list[i].map.name = dev_name(&dev->dev); info->list[i].map.phys = res.start; info->list[i].map.size = res_size; - info->list[i].map.bankwidth = *width; + info->list[i].map.bankwidth = be32_to_cpup(width); err = -ENOMEM; info->list[i].map.virt = ioremap(info->list[i].map.phys, |