diff options
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r-- | drivers/base/devtmpfs.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index dabf5006a254..30d0523014e0 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -67,19 +67,15 @@ static struct dentry *public_dev_mount(struct file_system_type *fs_type, int fla return dget(s->s_root); } -static struct dentry *dev_mount(struct file_system_type *fs_type, int flags, - const char *dev_name, void *data) -{ +static struct file_system_type internal_fs_type = { + .name = "devtmpfs", #ifdef CONFIG_TMPFS - return shmem_mount(fs_type, flags, dev_name, data); + .init_fs_context = shmem_init_fs_context, + .parameters = &shmem_fs_parameters, #else - return ramfs_mount(fs_type, flags, dev_name, data); + .init_fs_context = ramfs_init_fs_context, + .parameters = &ramfs_fs_parameters, #endif -} - -static struct file_system_type internal_fs_type = { - .name = "devtmpfs", - .mount = dev_mount, .kill_sb = kill_litter_super, }; |