[PATCH 22/54] powerpc/shared/clock/p_clock.c: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 13 15:37:06 UTC 2014


---
 c/src/lib/libbsp/powerpc/shared/clock/p_clock.c | 29 +++++++++++++++----------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c b/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
index 2a1ec0b..1ff7ca0 100644
--- a/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
+++ b/c/src/lib/libbsp/powerpc/shared/clock/p_clock.c
@@ -1,6 +1,8 @@
 /*
  *  Clock Tick interrupt conexion code.
- *
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1997.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -18,21 +20,24 @@
 #include <libcpu/cpuIdent.h>
 
 static rtems_irq_connect_data clockIrqData;
-static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
-					      clockIsr,
-                                              NULL,
-					      (rtems_irq_enable)clockOn,
-					      (rtems_irq_disable)clockOff,
-					      (rtems_irq_is_enabled) clockIsOn};
-int BSP_disconnect_clock_handler (void)
+static rtems_irq_connect_data clockIrqData = {
+  BSP_DECREMENTER,
+  clockIsr,
+  NULL,
+  (rtems_irq_enable)clockOn,
+  (rtems_irq_disable)clockOff,
+  (rtems_irq_is_enabled) clockIsOn
+};
+
+int BSP_disconnect_clock_handler(void)
 {
-  return BSP_remove_rtems_irq_handler (&clockIrqData);
+  return BSP_remove_rtems_irq_handler(&clockIrqData);
 }
 
-int BSP_connect_clock_handler (void)
+int BSP_connect_clock_handler(void)
 {
   if ( ppc_cpu_is_bookE() )
-  	clockIrqData.hdl = clockIsrBookE;
+    clockIrqData.hdl = clockIsrBookE;
 
-  return BSP_install_rtems_irq_handler (&clockIrqData);
+  return BSP_install_rtems_irq_handler(&clockIrqData);
 }
-- 
1.9.3




More information about the devel mailing list