From 767164a958af4ccf878f01ded0f40212ed48e7bc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 12 Oct 2014 10:06:05 -0500 Subject: gen68302/clock/ckinit.c: Fix warnings --- c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c | 32 ++++++--------------------- 1 file 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 @@ -47,18 +44,10 @@ 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; } -- cgit v1.2.3