tree d3c9232bde8ac7aa83e20a36265847cf4b9716a3
parent cdcd318fefab8c8655fdc3b085ccc23848a93001
author Milton Miller <[EMAIL PROTECTED]> Tue, 06 Sep 2005 11:54:13 +1000
committer Paul Mackerras <[EMAIL PROTECTED]> Tue, 06 Sep 2005 16:07:35 +1000

[PATCH] ppc64: dont bypass ppc_md.udbg* functions

udbg_getc_poll is a ppc_md function.   don't call directly into udbg.c

Signed-off-by: Milton Miller <[EMAIL PROTECTED]>
Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>

 arch/ppc64/xmon/start.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/ppc64/xmon/start.c b/arch/ppc64/xmon/start.c
--- a/arch/ppc64/xmon/start.c
+++ b/arch/ppc64/xmon/start.c
@@ -61,7 +61,9 @@ xmon_read(void *handle, void *ptr, int n
 int
 xmon_read_poll(void)
 {
-       return udbg_getc_poll();
+       if (ppc_md.udbg_getc_poll)
+               return ppc_md.udbg_getc_poll();
+       return -1;
 }
  
 FILE *xmon_stdin;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to