diff options
author | Marvin Borner | 2021-04-13 22:09:23 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-13 22:09:23 +0200 |
commit | 9ded3a2bde80eede5fd887812d70c2f834b53c84 (patch) | |
tree | 932a90608c5f30d38b810dc4fe9264cc43c2da68 /kernel/drivers/rtc.c | |
parent | f96b8ad1ee83dec08ae636e179cc48019ca50b12 (diff) |
Started IO dev manager
Diffstat (limited to 'kernel/drivers/rtc.c')
-rw-r--r-- | kernel/drivers/rtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/drivers/rtc.c b/kernel/drivers/rtc.c index a82864f..a814fa9 100644 --- a/kernel/drivers/rtc.c +++ b/kernel/drivers/rtc.c @@ -70,7 +70,7 @@ u32 rtc_stamp(void) rtc.year * 360 * 24 * 365; } -static res rtc_dev_read(void *buf, u32 offset, u32 count, struct device *dev) +static res rtc_dev_read(void *buf, u32 offset, u32 count, struct vfs_dev *dev) { UNUSED(offset); UNUSED(dev); @@ -83,9 +83,9 @@ static res rtc_dev_read(void *buf, u32 offset, u32 count, struct device *dev) CLEAR void rtc_install(void) { - struct device *dev = zalloc(sizeof(*dev)); + struct vfs_dev *dev = zalloc(sizeof(*dev)); dev->name = strdup("rtc"); dev->type = DEV_CHAR; dev->read = rtc_dev_read; - device_add(dev); + /* device_add(dev); */ } |