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:26 -0500 |
commit | 767164a958af4ccf878f01ded0f40212ed48e7bc (patch) | |
tree | f386358a5e345f18f4a19a6eaeadbbc32e3bd583 /c/src/lib/libbsp/m68k/gen68302/clock | |
parent | m68k/uC5282: Fix warnings (diff) | |
download | rtems-767164a958af4ccf878f01ded0f40212ed48e7bc.tar.bz2 |
gen68302/clock/ckinit.c: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/m68k/gen68302/clock')
-rw-r--r-- | 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 8251019df8..1e4982ed86 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; } |