dm: core: Fix translate condition in ofnode_get_addr_size()
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:36 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 04:44:07 +0000 (12:44 +0800)
commit003331827a1c7c97ea5b2e29961858e004a485e1
treeff75a19b8f03d80669f7b055c8e4586ebc8b0731
parent9481c80f55260fa2b2c37445fb2a30811b136ed3
dm: core: Fix translate condition in ofnode_get_addr_size()

Update the condition to translate only if this is enabled for SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/ofnode.c