[rtems commit] libchip/serial: Fix warnings
Sebastian Huber
sebh at rtems.org
Mon Feb 11 13:40:31 UTC 2013
Module: rtems
Branch: master
Commit: d2a4f158e1935f0774c4419924a34f8f75f9b257
Changeset: http://git.rtems.org/rtems/commit/?id=d2a4f158e1935f0774c4419924a34f8f75f9b257
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Feb 8 11:58:37 2013 +0100
libchip/serial: Fix warnings
---
c/src/libchip/serial/mc68681.c | 6 ------
c/src/libchip/serial/mc68681_p.h | 9 +++++++++
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/c/src/libchip/serial/mc68681.c b/c/src/libchip/serial/mc68681.c
index 58dfa0d..ca231ff 100644
--- a/c/src/libchip/serial/mc68681.c
+++ b/c/src/libchip/serial/mc68681.c
@@ -221,7 +221,6 @@ MC68681_STATIC void mc68681_initialize_context(
MC68681_STATIC void mc68681_init(int minor)
{
uint32_t pMC68681_port;
- uint32_t pMC68681;
mc68681_context *pmc68681Context;
setRegister_f setReg;
@@ -231,7 +230,6 @@ MC68681_STATIC void mc68681_init(int minor)
mc68681_initialize_context( minor, pmc68681Context );
- pMC68681 = Console_Port_Tbl[minor]->ulCtrlPort1;
pMC68681_port = Console_Port_Tbl[minor]->ulCtrlPort2;
setReg = Console_Port_Tbl[minor]->setRegister;
@@ -329,11 +327,9 @@ MC68681_STATIC int mc68681_close(
void *arg
)
{
- uint32_t pMC68681;
uint32_t pMC68681_port;
setRegister_f setReg;
- pMC68681 = Console_Port_Tbl[minor]->ulCtrlPort1;
pMC68681_port = Console_Port_Tbl[minor]->ulCtrlPort2;
setReg = Console_Port_Tbl[minor]->setRegister;
@@ -628,12 +624,10 @@ MC68681_STATIC void mc68681_process(
volatile uint8_t ucISRStatus;
char cChar;
getRegister_f getReg;
- setRegister_f setReg;
pMC68681 = Console_Port_Tbl[minor]->ulCtrlPort1;
pMC68681_port = Console_Port_Tbl[minor]->ulCtrlPort2;
getReg = Console_Port_Tbl[minor]->getRegister;
- setReg = Console_Port_Tbl[minor]->setRegister;
/* Get ISR at the beginning of the IT routine */
ucISRStatus = (*getReg)(pMC68681, MC68681_INTERRUPT_STATUS_REG);
diff --git a/c/src/libchip/serial/mc68681_p.h b/c/src/libchip/serial/mc68681_p.h
index 0ad67ef..f74ab6b 100644
--- a/c/src/libchip/serial/mc68681_p.h
+++ b/c/src/libchip/serial/mc68681_p.h
@@ -249,6 +249,11 @@ typedef struct _mc68681_context
/*
* Driver functions
*/
+MC68681_STATIC void mc68681_initialize_context(
+ int minor,
+ mc68681_context *pmc68681Context
+);
+
MC68681_STATIC bool mc68681_probe(int minor);
MC68681_STATIC int mc68681_set_attributes(
@@ -307,6 +312,10 @@ MC68681_STATIC void mc68681_enable_interrupts(
int imr_mask
);
+MC68681_STATIC rtems_isr mc68681_isr(
+ rtems_vector_number vector
+);
+
#ifdef __cplusplus
}
#endif
More information about the vc
mailing list