|
@@ -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,
|