Patchwork [U-Boot,04/10] bootz: un-staticize do_bootz

login
register
mail settings
Submitter Rob Herring
Date Dec. 3, 2012, 3 a.m.
Message ID <1354503629-25621-5-git-send-email-robherring2@gmail.com>
Download mbox | patch
Permalink /patch/203272/
State Accepted
Delegated to: Joe Hershberger
Headers show

Comments

Rob Herring - Dec. 3, 2012, 3 a.m.
From: Rob Herring <rob.herring@calxeda.com>

Make do_bootz available for other functions like do_bootm is.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 common/cmd_bootm.c |    2 +-
 include/command.h  |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 4dbe952..fc32a2f 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1612,7 +1612,7 @@  static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc,
 	return 0;
 }
 
-static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	bootm_headers_t	images;
 
diff --git a/include/command.h b/include/command.h
index 10bc260..593a332 100644
--- a/include/command.h
+++ b/include/command.h
@@ -110,6 +110,8 @@  static inline int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
 }
 #endif
 
+extern int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+
 extern int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
 			   char *const argv[]);