]> git.dujemihanovic.xyz Git - u-boot.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)
commitd22c69524966b6d65d98476acb7fda827207e10d
treead98deb00aa980ed1bf39eb1c98835f077dc90d6
parenteab09fbe6401e63bf53274042f367303541382c1
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