Skip to content
Commit 3fe69d37 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Simon Glass
Browse files

dm: core: Fix devfdt_get_addr_ptr return value



According to the description of devfdt_get_addr_ptr, this function should
return NULL on failure, but currently it returns (void *)FDT_ADDR_T_NONE.

Fix this by making devfdt_get_addr_ptr return NULL on failure, as
described in the function comments. Also, update the drivers currently
checking (void *)FDT_ADDR_T_NONE to check for NULL.

Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 02291d83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment