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
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43564
Signed-off-by: Maikel Bloemendal <openwrt@maikelenyvonne.nl> Tested-by: Eddi De Pieri <eddi@depieri.net> SVN-Revision: 43272