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)
commita15dd8ec78ca8acbec00f5535538961f0ec23f71
tree3fca01f205c81d733f1e40a636b1df5fbcb7b78a
parentaf3b4077bd1652163f7aa1c2df63f0f024017dcf
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