[PATCH] watchdog: Use dev_read only if OF_PLATDATA is not enabled

Simon Glass sjg at chromium.org
Thu Jan 30 03:19:48 CET 2020


On Thu, 23 Jan 2020 at 12:05, Walter Lozano <walter.lozano at 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.lozano at collabora.com>
> ---
>  include/wdt.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list