fdt: fix fdtdec_setup_memory_banksize()
authorJens Wiklander <jens.wiklander@linaro.org>
Fri, 13 Jul 2018 10:12:11 +0000 (12:12 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 26 Jul 2018 20:19:38 +0000 (14:19 -0600)
commit452bc121027df6bc5ad59e25db8c6b0a4ecbe8a4
treedb92114d4305c970166cfbf1a451cb65dd12a446
parent09b8d67f31eccc90ec74729589194e619303ba77
fdt: fix fdtdec_setup_memory_banksize()

Prior to this patch is fdtdec_setup_memory_banksize() incorrectly
ignoring the "status" field. This patch fixes that by testing the status
with fdtdec_get_is_enabled() before using a memory node.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c