[rtems commit] Fixed bug intoduced due to API changes.

Sebastian Huber sebh at rtems.org
Sat Feb 11 20:09:17 UTC 2012


Module:    rtems
Branch:    master
Commit:    034b04163c2f6524ba163918092b92ea7c1dd724
Changeset: http://git.rtems.org/rtems/commit/?id=034b04163c2f6524ba163918092b92ea7c1dd724

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  7 22:13:04 2012 +0100

Fixed bug intoduced due to API changes.

---

 c/src/lib/libbsp/arm/lm3s69xx/console/uart.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/arm/lm3s69xx/console/uart.c b/c/src/lib/libbsp/arm/lm3s69xx/console/uart.c
index f85b23e..460175c 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/console/uart.c
+++ b/c/src/lib/libbsp/arm/lm3s69xx/console/uart.c
@@ -20,7 +20,7 @@
 
 static volatile lm3s69xx_uart *get_uart_regs(int minor)
 {
-  console_tbl *ct = &Console_Port_Tbl [minor];
+  console_tbl *ct = Console_Port_Tbl [minor];
 
   return (lm3s69xx_uart *) ct->ulCtrlPort1;
 }
@@ -38,7 +38,6 @@ static int first_open(int major, int minor, void *arg)
 {
   rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
   struct rtems_termios_tty *tty = (struct rtems_termios_tty *) oc->iop->data1;
-  console_tbl *ct = &Console_Port_Tbl [minor];
   console_data *cd = &Console_Port_Data [minor];
 
   cd->termios_data = tty;




More information about the vc mailing list