mlx4: /dev/ -> /dev_vfs/
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 18 Oct 2016 18:21:57 +0000 (14:21 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 18 Oct 2016 18:21:57 +0000 (14:21 -0400)
Fixes the mlx4 driver in accordance with commit 9724f9a56650 ("Move VFS
/dev/ -> /dev_vfs/").

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/udrvr/compat.c

index 6db258d..f2cd930 100644 (file)
@@ -304,7 +304,7 @@ static const struct file_operations cpuinfo = {
 
 void sysfs_init(void)
 {
-       do_mkdir("/dev/infiniband", S_IRWXU | S_IRWXG | S_IRWXO);
+       do_mkdir("/dev_vfs/infiniband", S_IRWXU | S_IRWXG | S_IRWXO);
        do_mkdir("/sys", S_IRWXU | S_IRWXG | S_IRWXO);
        do_mkdir("/sys/class", S_IRWXU | S_IRWXG | S_IRWXO);
        do_mkdir("/sys/class/infiniband_verbs", S_IRWXU | S_IRWXG | S_IRWXO);
@@ -423,7 +423,7 @@ void sysfs_create(int devnum, const struct file_operations *verb_fops,
     void *ptr)
 {
        char            sysname[256] = "/sys/class/infiniband_verbs/uverbs0";
-       char            devname[] = "/dev/infiniband/uverbs0";
+       char            devname[] = "/dev_vfs/infiniband/uverbs0";
        char            drvname[64] = "/sys/class/infiniband/";
        int             sysnameidx = strlen(sysname), drvidx;
        struct file     *fp;