Patchwork [U-Boot] examples: update do_reset prototype

login
register
mail settings
Submitter Mike Frysinger
Date Dec. 19, 2010, 10:16 p.m.
Message ID <1292797013-2940-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/76159/
State Accepted
Commit e0306cab092c3f9f3526f4c72832561201d97e11
Delegated to: Wolfgang Denk
Headers show

Comments

Mike Frysinger - Dec. 19, 2010, 10:16 p.m.
One more place that was missed during the do_reset() unification.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 examples/api/libgenwrap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Mike Frysinger - Dec. 19, 2010, 11:10 p.m.
meant to add "next" to the subject
-mike
Wolfgang Denk - Jan. 9, 2011, 4:54 p.m.
Dear Mike Frysinger,

In message <1292797013-2940-1-git-send-email-vapier@gentoo.org> you wrote:
> One more place that was missed during the do_reset() unification.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  examples/api/libgenwrap.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c
index 9733bbc..873cf34 100644
--- a/examples/api/libgenwrap.c
+++ b/examples/api/libgenwrap.c
@@ -81,9 +81,10 @@  void __udelay(unsigned long usec)
 	ub_udelay(usec);
 }
 
-void do_reset (void)
+int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	ub_reset();
+	return 0;
 }
 
 void *malloc (size_t len)