init: add an init_mknod helper
Add a simple helper to mknod with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_mknod. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -22,8 +22,7 @@ static int __init default_rootfs(void)
|
||||
if (err < 0)
|
||||
goto out;
|
||||
|
||||
err = ksys_mknod((const char __user __force *) "/dev/console",
|
||||
S_IFCHR | S_IRUSR | S_IWUSR,
|
||||
err = init_mknod("/dev/console", S_IFCHR | S_IRUSR | S_IWUSR,
|
||||
new_encode_dev(MKDEV(5, 1)));
|
||||
if (err < 0)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user