[U-Boot] [PATCH] serial: punt unused serial_addr()

Mike Frysinger vapier at gentoo.org
Wed May 5 10:32:43 CEST 2010


Only one file apparently defines this function, and it merely stubs it
out.  So if no one is defining/calling it, punt it.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 board/barco/barco.c |    4 ----
 include/common.h    |    1 -
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/board/barco/barco.c b/board/barco/barco.c
index d7a0078..c5fe8c4 100644
--- a/board/barco/barco.c
+++ b/board/barco/barco.c
@@ -340,10 +340,6 @@ void serial_puts (const char *c)
 {
 	return;
 }
-void serial_addr (unsigned int i)
-{
-	return;
-}
 int serial_getc (void)
 {
 	return 0;
diff --git a/include/common.h b/include/common.h
index c7358a2..ef6365a 100644
--- a/include/common.h
+++ b/include/common.h
@@ -470,7 +470,6 @@ void ft_pci_setup(void *blob, bd_t *bd);
 /* $(CPU)/serial.c */
 int	serial_init   (void);
 void	serial_exit   (void);
-void	serial_addr   (unsigned int);
 void	serial_setbrg (void);
 void	serial_putc   (const char);
 void	serial_putc_raw(const char);
-- 
1.7.1



More information about the U-Boot mailing list