diff options
Diffstat (limited to 'fs/devpts/inode.c')
-rw-r--r-- | fs/devpts/inode.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index c68edb969441..75efb028974b 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -423,7 +423,6 @@ static void devpts_kill_sb(struct super_block *sb) | |||
423 | } | 423 | } |
424 | 424 | ||
425 | static struct file_system_type devpts_fs_type = { | 425 | static struct file_system_type devpts_fs_type = { |
426 | .owner = THIS_MODULE, | ||
427 | .name = "devpts", | 426 | .name = "devpts", |
428 | .get_sb = devpts_get_sb, | 427 | .get_sb = devpts_get_sb, |
429 | .kill_sb = devpts_kill_sb, | 428 | .kill_sb = devpts_kill_sb, |
@@ -557,18 +556,11 @@ static int __init init_devpts_fs(void) | |||
557 | int err = register_filesystem(&devpts_fs_type); | 556 | int err = register_filesystem(&devpts_fs_type); |
558 | if (!err) { | 557 | if (!err) { |
559 | devpts_mnt = kern_mount(&devpts_fs_type); | 558 | devpts_mnt = kern_mount(&devpts_fs_type); |
560 | if (IS_ERR(devpts_mnt)) | 559 | if (IS_ERR(devpts_mnt)) { |
561 | err = PTR_ERR(devpts_mnt); | 560 | err = PTR_ERR(devpts_mnt); |
561 | unregister_filesystem(&devpts_fs_type); | ||
562 | } | ||
562 | } | 563 | } |
563 | return err; | 564 | return err; |
564 | } | 565 | } |
565 | |||
566 | static void __exit exit_devpts_fs(void) | ||
567 | { | ||
568 | unregister_filesystem(&devpts_fs_type); | ||
569 | mntput(devpts_mnt); | ||
570 | } | ||
571 | |||
572 | module_init(init_devpts_fs) | 566 | module_init(init_devpts_fs) |
573 | module_exit(exit_devpts_fs) | ||
574 | MODULE_LICENSE("GPL"); | ||