From 3dc9d80fb3e680f18c41fe469abf36256ec14b63 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 12 Oct 2014 15:37:33 -0500 Subject: libcpu/sh/sh7032/clock/ckinit.c: Fix warnings --- c/src/lib/libcpu/sh/sh7032/clock/ckinit.c | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'c/src/lib/libcpu/sh') diff --git a/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c b/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c index d7fba001d4..6faaf27f58 100644 --- a/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c +++ b/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c @@ -1,6 +1,8 @@ /* * This file contains the clock driver the Hitachi SH 703X - * + */ + +/* * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and * Bernd Becker (becker@faw.uni-ulm.de) * @@ -10,7 +12,6 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * * COPYRIGHT (c) 1998. * On-Line Applications Research Corporation (OAR). * @@ -23,7 +24,7 @@ #include -#include +#include #include #include #include @@ -122,7 +123,7 @@ static unsigned int sh_clicks_per_tick( volatile uint32_t Clock_driver_ticks; -static void Clock_exit( void ); +void Clock_exit( void ); static rtems_isr Clock_isr( rtems_vector_number vector ); /* @@ -136,24 +137,15 @@ static rtems_isr Clock_isr( rtems_vector_number vector ); uint32_t Clock_isrs; /* ISRs until next tick */ static uint32_t Clock_isrs_const; /* only calculated once */ -/* - * These are set by clock driver during its init - */ - -rtems_device_major_number rtems_clock_major = ~0; -rtems_device_minor_number rtems_clock_minor; - /* * The previous ISR on this clock tick interrupt vector. */ - rtems_isr_entry Old_ticker; /* * Isr Handler */ - -rtems_isr Clock_isr( +static rtems_isr Clock_isr( rtems_vector_number vector ) { @@ -190,8 +182,7 @@ rtems_isr Clock_isr( * Install a clock tick handler and reprograms the chip. This * is used to initially establish the clock tick. */ - -void Install_clock( +static void Install_clock( rtems_isr_entry clock_isr ) { @@ -276,7 +267,6 @@ void Install_clock( /* * Clean up before the application exits */ - void Clock_exit( void ) { uint8_t temp8 = 0; @@ -312,12 +302,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