Skip to content
Commit 0a6b75f7 authored by Michael Walle's avatar Michael Walle Committed by Simon Glass
Browse files

dm: core: fix dev_read_alias_highest_id() without libfdt



If CONFIG_DM_DEV_READ_INLINE is set, dev_read_alias_highest_id() calls
libfdt_get_highest_id(). But this function is only available if we have
libfdt compiled in. If its not available return -1, which matches the
return code for no alias found.

This fixes the following error on omapl138_lcdk:
arm-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `dev_read_alias_highest_id':
/home/mw/repo/u-boot/include/dm/read.h:986: undefined reference to `fdtdec_get_alias_highest_id'

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c03b7612
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