mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
eab09fbe64
commit
d22c695249
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ U_BOOT_DRIVER(sandbox_timer) = {
|
|||
};
|
||||
|
||||
/* This is here in case we don't have a device tree */
|
||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
U_BOOT_DRVINFO(sandbox_timer_non_fdt) = {
|
||||
.name = "sandbox_timer",
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue