Skip to content

Commit

Permalink
Renamed mc146818 /dev interface to plain rtc as cahirwpz#302 should b…
Browse files Browse the repository at this point in the history
…e merged sometime soon
  • Loading branch information
rafalcieslak committed May 8, 2017
1 parent 553837e commit f169bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/drv_mc146818.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int mc146818_attach(device_t *dev) {
/* Only the first instance gets to devfs. */
vnode_t *dev_mc146818 = vnode_new(V_DEV, &dev_mc146818_vnodeops);
dev_mc146818->v_data = mc146818;
devfs_install("mc146818", dev_mc146818);
devfs_install("rtc", dev_mc146818);
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void mdelay(unsigned msec) {

static int test_rtc() {
vnode_t *v;
int error = vfs_lookup("/dev/mc146818", &v);
int error = vfs_lookup("/dev/rtc", &v);
assert(!error);

uio_t uio;
Expand Down

0 comments on commit f169bb2

Please sign in to comment.