Skip to content
Commit ed666fb1 authored by Walter Lozano's avatar Walter Lozano Committed by Stefan Roese
Browse files

watchdog: Use dev_read only if OF_PLATDATA is not enabled



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: default avatarWalter Lozano <walter.lozano@collabora.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 50be9f0e
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