On Thu, 23 Jan 2020 at 12:05, Walter Lozano <walter.loz...@collabora.com> wrote: > > Currently watchdog tries to use dev_read_u32_default to get timeout > configuration in case OF_CONTROL is enabled. However, if SPL is > built with OF_PLATDATA this has no sense as there is no device tree. > > This patch fixes this issue by only use dev_read_u32_default if OF_CONTROL > is enabled but OF_PLATDATA is not. > > Signed-off-by: Walter Lozano <walter.loz...@collabora.com> > --- > include/wdt.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Simon Glass <s...@chromium.org>