Driver Core: misc: add nodename support for misc devices.
[safe/jmp/linux-2.6] / drivers / net / tun.c
index 811d351..11a0ba4 100644 (file)
@@ -1366,6 +1366,7 @@ static const struct file_operations tun_fops = {
 static struct miscdevice tun_miscdev = {
        .minor = TUN_MINOR,
        .name = "tun",
+       .devnode = "net/tun",
        .fops = &tun_fops,
 };