]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit97a42c833a795a5fea983d4a4173a4c6df814a57
treedb92114d4305c970166cfbf1a451cb65dd12a446
parent80a255564f1fa31e388d78dd6993f7e82d0b7305
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