aboutsummaryrefslogtreecommitdiff
path: root/board/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-03 11:31:23 -0600
committerSimon Glass <sjg@chromium.org>2020-10-29 14:42:17 -0600
commitc14732984759d64634350d01d58daca8cf44d23f (patch)
tree6c282151f69a04f14082d487ac08308c0c68658a /board/sandbox
parent627988f9f9b5533cedb3e9d2de0e0b905bb3f45f (diff)
downloadu-boot-c14732984759d64634350d01d58daca8cf44d23f.zip
u-boot-c14732984759d64634350d01d58daca8cf44d23f.tar.gz
u-boot-c14732984759d64634350d01d58daca8cf44d23f.tar.bz2
sandbox: Drop ad-hoc device declarations in SPL
Since sandbox's SPL is build with of-platadata, we should not use U_BOOT_DEVICE() declarations as well. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/sandbox')
-rw-r--r--board/sandbox/sandbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 937ce28..18a605d 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -21,10 +21,12 @@
*/
gd_t *gd;
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
/* Add a simple GPIO device */
U_BOOT_DEVICE(gpio_sandbox) = {
.name = "sandbox_gpio",
};
+#endif
void flush_cache(unsigned long start, unsigned long size)
{