Commit 80948717 authored by Paolo \'Blaisorblade\' Giarrusso's avatar Paolo \'Blaisorblade\' Giarrusso Committed by Linus Torvalds

[PATCH] uml: remove most devfs_mk_symlink calls

Remove uses of devfs_mk_symlink().

We didn't do this before to avoid breaking most user setups, but this patch
should be quite harmless.

I've excluded the hottest part, i.e.  the ubd symlink, while removing the
other; I released a end-user tree with this patch and there was a good number
of people using the symlink rather than the preferred name.  That part will be
merged later, I think.

Since now we have evidence of less and less users using devfs, we think that
it will not cause too much problems.
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 23d0f2d1
...@@ -415,8 +415,7 @@ struct tty_driver *line_register_devfs(struct lines *set, ...@@ -415,8 +415,7 @@ struct tty_driver *line_register_devfs(struct lines *set,
struct tty_operations *ops, struct line *lines, struct tty_operations *ops, struct line *lines,
int nlines) int nlines)
{ {
int err, i; int i;
char *from, *to;
struct tty_driver *driver = alloc_tty_driver(nlines); struct tty_driver *driver = alloc_tty_driver(nlines);
if (!driver) if (!driver)
...@@ -436,12 +435,6 @@ struct tty_driver *line_register_devfs(struct lines *set, ...@@ -436,12 +435,6 @@ struct tty_driver *line_register_devfs(struct lines *set,
if (tty_register_driver(driver)) if (tty_register_driver(driver))
panic("line_register_devfs : Couldn't register driver\n"); panic("line_register_devfs : Couldn't register driver\n");
from = line_driver->symlink_from;
to = line_driver->symlink_to;
err = devfs_mk_symlink(from, to);
if(err) printk("Symlink creation from /dev/%s to /dev/%s "
"returned %d\n", from, to, err);
for(i = 0; i < nlines; i++){ for(i = 0; i < nlines; i++){
if(!lines[i].valid) if(!lines[i].valid)
tty_unregister_device(driver, i); tty_unregister_device(driver, i);
......
...@@ -128,7 +128,6 @@ static int __init mmapper_init(void) ...@@ -128,7 +128,6 @@ static int __init mmapper_init(void)
p_buf = __pa(v_buf); p_buf = __pa(v_buf);
devfs_mk_cdev(MKDEV(30, 0), S_IFCHR|S_IRUGO|S_IWUGO, "mmapper"); devfs_mk_cdev(MKDEV(30, 0), S_IFCHR|S_IRUGO|S_IWUGO, "mmapper");
devfs_mk_symlink("mmapper0", "mmapper");
return(0); return(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment