]> git.neil.brown.name Git - history.git/commitdiff
[TUN]: Name fix.
authorStephen Hemminger <shemminger@osdl.org>
Mon, 15 Mar 2004 04:42:19 +0000 (20:42 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 15 Mar 2004 04:42:19 +0000 (20:42 -0800)
This fixes both the devfs name and the /sys name issues.
It ends up as /dev/net/tun and /sys/class/misc/tun looks correct.

drivers/net/tun.c

index 13db6e763a08cefa25db05e29a51c62a6f92600b..6973a667e1f46948e835763c142e591fc9842e17 100644 (file)
@@ -602,8 +602,9 @@ static struct file_operations tun_fops = {
 
 static struct miscdevice tun_miscdev = {
        .minor = TUN_MINOR,
-       .name = "net/tun",
-       .fops = &tun_fops
+       .name = "tun",
+       .fops = &tun_fops,
+       .devfs_name = "net/tun",
 };
 
 int __init tun_init(void)