]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: vt8500: Add missing NULL terminator in dt_compat
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Fri, 17 May 2013 07:44:17 +0000 (08:44 +0100)
committerOlof Johansson <olof@lixom.net>
Tue, 21 May 2013 06:30:54 +0000 (23:30 -0700)
commit9f8466c6e09e62a1d047f2e57d90cd42e46b35c1
tree905214f87f552c2a3959eeaa17532217adcc6de6
parent8582df0f637140b94d54d297d07edc8d6702f35c
ARM: vt8500: Add missing NULL terminator in dt_compat

When I tried booting a stih415 Dual core A9 with multi_v7_defconfig, it
failed to boot. The issues seems to be changing by enabling or disabling
VT8550 platform. Having a quick look at dt_compat list, it seems to miss
a NULL terminator, which means of_flat_dt_match will compat check will
cross the boundary of dt_compat and fault at some point , which is what
was happening in my case.

Without this patch if we try to boot multi_v7_defconfig you might notice
that some of the platforms might fault if they fall after vt8500 in
machine-desc list. Other platforms which fall before vt8500 in mdesc list
will not fault.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-vt8500/vt8500.c