drm: don't bother with super_operations and dentry_operations
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 May 2019 12:44:56 +0000 (13:44 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 20 May 2019 13:09:46 +0000 (14:09 +0100)
defaults will do just fine.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/drm_drv.c

index 8626214..8b44ac9 100644 (file)
@@ -532,21 +532,13 @@ EXPORT_SYMBOL(drm_dev_unplug);
 static int drm_fs_cnt;
 static struct vfsmount *drm_fs_mnt;
 
-static const struct dentry_operations drm_fs_dops = {
-       .d_dname        = simple_dname,
-};
-
-static const struct super_operations drm_fs_sops = {
-       .statfs         = simple_statfs,
-};
-
 static struct dentry *drm_fs_mount(struct file_system_type *fs_type, int flags,
                                   const char *dev_name, void *data)
 {
        return mount_pseudo(fs_type,
                            "drm:",
-                           &drm_fs_sops,
-                           &drm_fs_dops,
+                           NULL,
+                           NULL,
                            0x010203ff);
 }