]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6953/1: DT: don't try to access physical address zero
authorNicolas Pitre <nicolas.pitre@linaro.org>
Thu, 9 Jun 2011 03:58:36 +0000 (04:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Jun 2011 09:15:06 +0000 (10:15 +0100)
commit460116be15ba629ab194b43d94c9eb88b7969d9f
tree5c4a69e4cc758ae58643d813621da83fc1042de3
parent24cc0297a11e9011adaabb4464a133b167e589cb
ARM: 6953/1: DT: don't try to access physical address zero

If the DT physical address is zero, this is equivalent to no DT.
Especially when the actual RAM physical address is not located at zero,
the result of phys_to_virt() would point to la-la-land and crash the
kernel, which crash is completely silent this early during boot.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/devtree.c