]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: fix building with CONFIG_SPL_TIMER=y
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 22 Feb 2023 00:39:18 +0000 (01:39 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Mar 2023 18:22:40 +0000 (11:22 -0700)
commit15d627d159b148b285cfe4dd32b149bc9bd40f2c
treead98deb00aa980ed1bf39eb1c98835f077dc90d6
parentf77c404481c1b2e20ea3929e45500927e0f1c16a
sandbox: fix building with CONFIG_SPL_TIMER=y

Building sandbox_defconfig with CONFIG_SPL_TIMER=y results in an error

    include/dm/platdata.h:63:33: error: static assertion failed:
    "Cannot use U_BOOT_DRVINFO with of-platdata.
    Please use devicetree instead"

Add a missing condition in the sandbox driver.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/sandbox_timer.c