ARM: imx: flag failure of of_iomap
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 8 Jul 2018 08:32:54 +0000 (10:32 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Jul 2018 12:47:37 +0000 (20:47 +0800)
commitcff70654d8289311c427625020d9f74348ad856e
treed569199d117d021e947d85d41bab1436d3b7cd2b
parent08a213c24f3ec2dbd6e790582a6e7ff303f02fd4
ARM: imx: flag failure of of_iomap

 imx_set_aips is assuming that the address returned from of_iomap is
valid which it probably is in the normal case - as the call site
is void error propagation is not possible but never the less at least
a WARN_ON() seems warranted here.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: commit e57e4ab5fc2e ("ARM: i.MX: allow disabling supervisor protect via DT")
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/cpu.c