[rtems commit] gen68302/clock/ckinit.c: Fix warnings

Joel Sherrill joel at rtems.org
Mon Oct 13 16:27:40 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 12 10:06:05 2014 -0500

gen68302/clock/ckinit.c: Fix warnings

---

 c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c |   32 +++++-------------------
 1 files changed, 7 insertions(+), 25 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c b/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c
index 8251019..1e4982e 100644
--- a/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c
@@ -1,13 +1,10 @@
-/*  Clock_init()
- *
+/*
  *  This routine initializes Timer 1 for an MC68302.
  *  The tick frequency is 1 millisecond.
- *
- *  Input parameters:  NONE
- *
- *  Output parameters:  NONE
- *
- *  COPYRIGHT (c) 1989-1999.
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2014.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -48,17 +45,9 @@ uint32_t         Clock_isrs;
 void Clock_exit( void );
 
 /*
- * These are set by clock driver during its init
- */
-
-rtems_device_major_number rtems_clock_major = ~0;
-rtems_device_minor_number rtems_clock_minor;
-
-/*
  *  ISR Handler
  */
-
-rtems_isr Clock_isr(
+static rtems_isr Clock_isr(
   rtems_vector_number vector
 )
 {
@@ -75,7 +64,7 @@ rtems_isr Clock_isr(
     Clock_isrs -= 1;
 }
 
-void Install_clock(
+static void Install_clock(
   rtems_isr_entry clock_isr
 )
 {
@@ -108,12 +97,5 @@ rtems_device_driver Clock_initialize(
 {
   Install_clock( Clock_isr );
 
-  /*
-   * make major/minor avail to others such as shared memory driver
-   */
-
-  rtems_clock_major = major;
-  rtems_clock_minor = minor;
-
   return RTEMS_SUCCESSFUL;
 }



More information about the vc mailing list