diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-12 10:06:05 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-13 10:33:27 -0500 |
commit | b3f86763e473dc767c82c415a44de500277ca76b (patch) | |
tree | 9eb3679d44728837d60a39142b0a0e94c9ef7164 | |
parent | mvme167/clock/ckinit.c: Fix warnings (diff) | |
download | rtems-b3f86763e473dc767c82c415a44de500277ca76b.tar.bz2 |
ods68302/clock/ckinit.c: Fix warnings
-rw-r--r-- | c/src/lib/libbsp/m68k/ods68302/clock/ckinit.c | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/m68k/ods68302/clock/ckinit.c b/c/src/lib/libbsp/m68k/ods68302/clock/ckinit.c index ac570a0e53..e0a807480d 100644 --- a/c/src/lib/libbsp/m68k/ods68302/clock/ckinit.c +++ b/c/src/lib/libbsp/m68k/ods68302/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 ) { @@ -109,12 +98,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; } |