mvme147/clock/ckinit.c: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-12 10:06:05 -05:00
parent d1347a37d2
commit 7bddaa3ca7

View File

@@ -1,12 +1,9 @@
/* Clock_init() /*
*
* This routine initializes the Tick Timer 2 on the MVME147 board. * This routine initializes the Tick Timer 2 on the MVME147 board.
* The tick frequency is 1 millisecond. * The tick frequency is 1 millisecond.
* */
* Input parameters: NONE
* /*
* Output parameters: NONE
*
* COPYRIGHT (c) 1989-1999. * COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
@@ -33,18 +30,10 @@ rtems_isr_entry Old_ticker;
void Clock_exit( void ); 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 * ISR Handler
*/ */
static rtems_isr Clock_isr(rtems_vector_number vector)
rtems_isr Clock_isr(rtems_vector_number vector)
{ {
Clock_driver_ticks += 1; Clock_driver_ticks += 1;
pcc->timer2_int_control |= 0x80; /* Acknowledge interr. */ pcc->timer2_int_control |= 0x80; /* Acknowledge interr. */
@@ -57,7 +46,7 @@ rtems_isr Clock_isr(rtems_vector_number vector)
Clock_isrs -= 1; Clock_isrs -= 1;
} }
void Install_clock(rtems_isr_entry clock_isr ) static void Install_clock(rtems_isr_entry clock_isr )
{ {
Clock_driver_ticks = 0; Clock_driver_ticks = 0;
@@ -88,12 +77,5 @@ rtems_device_driver Clock_initialize(
{ {
Install_clock( Clock_isr ); 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; return RTEMS_SUCCESSFUL;
} }