diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-05 19:22:33 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-11 09:05:07 +0100 |
commit | bb99cd0d83ae32e1f222bf2c8235a8f95128815d (patch) | |
tree | 345350623f1913eb19e785bf671e02cc114cdfe0 /bsps/bfin | |
parent | clock: Remove Clock_exit() from API (diff) | |
download | rtems-bb99cd0d83ae32e1f222bf2c8235a8f95128815d.tar.bz2 |
clock: Simplify driver initialization
Use a system initialization handler instead of a legacy IO driver.
Update #3834.
Diffstat (limited to 'bsps/bfin')
-rw-r--r-- | bsps/bfin/shared/dev/clock.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bsps/bfin/shared/dev/clock.c b/bsps/bfin/shared/dev/clock.c index 75cd139e52..4d500f6ccb 100644 --- a/bsps/bfin/shared/dev/clock.c +++ b/bsps/bfin/shared/dev/clock.c @@ -53,16 +53,7 @@ static void Clock_exit(void) *(uint32_t volatile *) TCNTL = 0; } -/* - * Clock_initialize - * - * This routine initializes the clock driver. - */ -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; @@ -75,6 +66,4 @@ rtems_device_driver Clock_initialize( *(uint32_t volatile *) TCNTL = TCNTL_TMPWR | TCNTL_TAUTORLD | TCNTL_TMREN; atexit(Clock_exit); - - return RTEMS_SUCCESSFUL; } |