fdt: Fixup only valid memory banks
authorThierry Reding <[email protected]>
Tue, 30 Jan 2018 10:34:17 +0000 (11:34 +0100)
committerSimon Glass <[email protected]>
Sun, 18 Feb 2018 19:53:38 +0000 (12:53 -0700)
commit6d29cc7dcf2d35966aa0b6119fd1cbca0d21d5e6
tree975964f8f78831085d7f597493d3aea645e19ea5
parent4280342adb2d72d6242ec1ffbb723af380b31586
fdt: Fixup only valid memory banks

Memory banks with address 0 and size 0 are empty and should not be
passed to the OS via device tree.

Signed-off-by: Thierry Reding <[email protected]>
Acked-by: Stephen Warren <[email protected]>
common/fdt_support.c