diff options
author | Marvin Borner | 2021-06-18 22:30:25 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-18 22:30:25 +0200 |
commit | 02a0c882275959c0fbd58754418ecc1218821e76 (patch) | |
tree | 7174e4c11a030b6bd7081a71ffa3bd6eee194c4e /kernel/drivers/timer.c | |
parent | b3d8e50aab8f3587f510db13ac8dcbb82e287998 (diff) |
Renamed device prefix from 'io_' to 'dev_'
Diffstat (limited to 'kernel/drivers/timer.c')
-rw-r--r-- | kernel/drivers/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c index 44d66f3..977647c 100644 --- a/kernel/drivers/timer.c +++ b/kernel/drivers/timer.c @@ -1,11 +1,11 @@ // MIT License, Copyright (c) 2020 Marvin Borner #include <def.h> +#include <dev.h> #include <drivers/cpu.h> #include <drivers/int.h> #include <drivers/rtc.h> #include <drivers/timer.h> -#include <io.h> #include <mem.h> #include <proc.h> @@ -70,7 +70,7 @@ CLEAR void timer_install(void) timer_phase(1000); int_event_handler_add(0, timer_handler); - struct io_dev *dev = zalloc(sizeof(*dev)); + struct dev_dev *dev = zalloc(sizeof(*dev)); dev->read = timer_read; - io_add(IO_TIMER, dev); + dev_add(DEV_TIMER, dev); } |