From bb99cd0d83ae32e1f222bf2c8235a8f95128815d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 5 Dec 2019 19:22:33 +0100 Subject: clock: Simplify driver initialization Use a system initialization handler instead of a legacy IO driver. Update #3834. --- bsps/shared/dev/clock/clockimpl.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'bsps/shared/dev/clock') diff --git a/bsps/shared/dev/clock/clockimpl.h b/bsps/shared/dev/clock/clockimpl.h index f5eb4dcd1d..163b498a18 100644 --- a/bsps/shared/dev/clock/clockimpl.h +++ b/bsps/shared/dev/clock/clockimpl.h @@ -194,22 +194,7 @@ rtems_isr Clock_isr( #endif } -/** - * @brief Clock_initialize - * - * This routine initializes the clock driver. - * - * @param[in] major Clock device major number. - * @param[in] minor Clock device minor number. - * @param[in] parg Pointer to optional device driver arguments - * - * @retval rtems_device_driver status code - */ -rtems_device_driver Clock_initialize( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) +void _Clock_Initialize( void ) { Clock_driver_ticks = 0; @@ -240,6 +225,4 @@ rtems_device_driver Clock_initialize( #if CLOCK_DRIVER_ISRS_PER_TICK Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK_VALUE; #endif - - return RTEMS_SUCCESSFUL; } -- cgit v1.2.3