diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-03 11:31:23 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:17 -0600 |
commit | c14732984759d64634350d01d58daca8cf44d23f (patch) | |
tree | 6c282151f69a04f14082d487ac08308c0c68658a /board/sandbox | |
parent | 627988f9f9b5533cedb3e9d2de0e0b905bb3f45f (diff) | |
download | u-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.c | 2 |
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) { |