firewall: update to git head
[openwrt/staging/chunkeey.git] / target / linux / lantiq / patches-3.7 / 0305-no_xip_nor.patch
1 Index: linux-3.7.10/drivers/mtd/maps/lantiq-flash.c
2 ===================================================================
3 --- linux-3.7.10.orig/drivers/mtd/maps/lantiq-flash.c 2013-02-27 18:22:04.000000000 +0100
4 +++ linux-3.7.10/drivers/mtd/maps/lantiq-flash.c 2013-03-12 10:10:22.954382685 +0100
5 @@ -134,7 +134,11 @@
6 }
7
8 ltq_mtd->map = kzalloc(sizeof(struct map_info), GFP_KERNEL);
9 - ltq_mtd->map->phys = ltq_mtd->res->start;
10 + if (of_find_property(pdev->dev.of_node, "lantiq,noxip", NULL))
11 + ltq_mtd->map->phys = NO_XIP;
12 + else
13 + ltq_mtd->map->phys = ltq_mtd->res->start;
14 + ltq_mtd->res->start;
15 ltq_mtd->map->size = resource_size(ltq_mtd->res);
16 ltq_mtd->map->virt = devm_request_and_ioremap(&pdev->dev, ltq_mtd->res);
17 if (!ltq_mtd->map->virt) {