]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6bdd67c63c12d384b187ab70915cfa5e0ea93349
treed569199d117d021e947d85d41bab1436d3b7cd2b
parentfa6d53f48f4cec61467d4a96af765d066a0dd567
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 db70e9f889e4 ("ARM: i.MX: allow disabling supervisor protect via DT")
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/cpu.c