aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fs/dev.c')
-rw-r--r--src/kernel/fs/dev.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/kernel/fs/dev.c b/src/kernel/fs/dev.c
index 52d8e01..b0e7619 100644
--- a/src/kernel/fs/dev.c
+++ b/src/kernel/fs/dev.c
@@ -25,11 +25,7 @@ void dev_make(char *name, read read, write write)
strcpy(path, "/dev/");
strcpy(&path[strlen("/dev/")], name);
- // TODO: Touch dev files in the vfs instead of opening it via ext2
- struct fs_node *node = (struct fs_node *)kmalloc(sizeof(struct fs_node));
- strcpy(node->name, path);
- fs_open(node);
- kfree(path);
+ struct fs_node *node = vfs_touch(fs_root, path);
if (node->inode == 0) {
warn("Couldn't resolve path");