lantiq: Fix flash for targets with NO_XIP
authorJohn Crispin <john@openwrt.org>
Sat, 14 Feb 2015 20:48:26 +0000 (20:48 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 14 Feb 2015 20:48:26 +0000 (20:48 +0000)
commit90612ad79df216d0a22a80c44a5a06dbf32fb2b1
tree52221d7996471f5ec1288e8c5d34a6d5d32e932f
parent0a5a196a56e276694827d97a6c74f91aca00cd53
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>
SVN-Revision: 44450
target/linux/lantiq/patches-3.14/0160-owrt-lantiq-multiple-flash.patch
target/linux/lantiq/patches-3.18/0160-owrt-lantiq-multiple-flash.patch