summaryrefslogtreecommitdiffstats
path: root/bsps/shared/dev/clock
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-05 19:22:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-11 09:05:07 +0100
commitbb99cd0d83ae32e1f222bf2c8235a8f95128815d (patch)
tree345350623f1913eb19e785bf671e02cc114cdfe0 /bsps/shared/dev/clock
parentclock: Remove Clock_exit() from API (diff)
downloadrtems-bb99cd0d83ae32e1f222bf2c8235a8f95128815d.tar.bz2
clock: Simplify driver initialization
Use a system initialization handler instead of a legacy IO driver. Update #3834.
Diffstat (limited to 'bsps/shared/dev/clock')
-rw-r--r--bsps/shared/dev/clock/clockimpl.h19
1 files changed, 1 insertions, 18 deletions
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;
}