lantiq: Fix flash for targets with NO_XIP
authorJohn Crispin <blogic@openwrt.org>
Sat, 14 Feb 2015 20:48:26 +0000 (20:48 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sat, 14 Feb 2015 20:48:26 +0000 (20:48 +0000)
commit92219e2626723719719c97a1d1a7dad580fc9193
tree52221d7996471f5ec1288e8c5d34a6d5d32e932f
parent066c67fc9699f3be5a5b4c746a6a4f857f77c2d2
lantiq: Fix flash for targets with NO_XIP

For targets with NO_XIP ltq_mtd->map[i].phys equals -1 and devm_ioremap fails.
Fix this by using pdev->resource[i].start instead.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44450 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/lantiq/patches-3.14/0160-owrt-lantiq-multiple-flash.patch
target/linux/lantiq/patches-3.18/0160-owrt-lantiq-multiple-flash.patch