[U-Boot] [PATCH v1 2/6] microblaze: Guard do_reset by CONFIG_SYSRESET

Shreenidhi Shedi yesshedi at gmail.com
Fri Jun 29 21:51:39 UTC 2018


Signed-off-by: Shreenidhi Shedi <yesshedi at gmail.com>
---

Changes in v1: None

 board/xilinx/microblaze-generic/microblaze-generic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 58ca1d715d..fb89276c4f 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -58,6 +58,7 @@ int dram_init(void)
 	return 0;
 };
 
+#if !defined(CONFIG_SYSRESET) || defined(CONFIG_SPL_BUILD)
 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 #ifndef CONFIG_SPL_BUILD
@@ -76,6 +77,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return 0;
 }
+#endif /* !CONFIG_SYSRESET || CONFIG_SPL_BUILD */
 
 static int gpio_init(void)
 {
-- 
2.17.1



More information about the U-Boot mailing list