diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/dev-ioctl.c | 5 | ||||
-rw-r--r-- | fs/btrfs/super.c | 5 | ||||
-rw-r--r-- | fs/fuse/dev.c | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index d29b7f6df862..d832062869f6 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c | |||
@@ -736,11 +736,14 @@ static const struct file_operations _dev_ioctl_fops = { | |||
736 | }; | 736 | }; |
737 | 737 | ||
738 | static struct miscdevice _autofs_dev_ioctl_misc = { | 738 | static struct miscdevice _autofs_dev_ioctl_misc = { |
739 | .minor = MISC_DYNAMIC_MINOR, | 739 | .minor = AUTOFS_MINOR, |
740 | .name = AUTOFS_DEVICE_NAME, | 740 | .name = AUTOFS_DEVICE_NAME, |
741 | .fops = &_dev_ioctl_fops | 741 | .fops = &_dev_ioctl_fops |
742 | }; | 742 | }; |
743 | 743 | ||
744 | MODULE_ALIAS_MISCDEV(AUTOFS_MINOR); | ||
745 | MODULE_ALIAS("devname:autofs"); | ||
746 | |||
744 | /* Register/deregister misc character device */ | 747 | /* Register/deregister misc character device */ |
745 | int autofs_dev_ioctl_init(void) | 748 | int autofs_dev_ioctl_init(void) |
746 | { | 749 | { |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 1866dff0538e..2909a03e5230 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -832,11 +832,14 @@ static const struct file_operations btrfs_ctl_fops = { | |||
832 | }; | 832 | }; |
833 | 833 | ||
834 | static struct miscdevice btrfs_misc = { | 834 | static struct miscdevice btrfs_misc = { |
835 | .minor = MISC_DYNAMIC_MINOR, | 835 | .minor = BTRFS_MINOR, |
836 | .name = "btrfs-control", | 836 | .name = "btrfs-control", |
837 | .fops = &btrfs_ctl_fops | 837 | .fops = &btrfs_ctl_fops |
838 | }; | 838 | }; |
839 | 839 | ||
840 | MODULE_ALIAS_MISCDEV(BTRFS_MINOR); | ||
841 | MODULE_ALIAS("devname:btrfs-control"); | ||
842 | |||
840 | static int btrfs_interface_init(void) | 843 | static int btrfs_interface_init(void) |
841 | { | 844 | { |
842 | return misc_register(&btrfs_misc); | 845 | return misc_register(&btrfs_misc); |
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index eb7e9423691f..e53df5ebb2b8 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | 19 | ||
20 | MODULE_ALIAS_MISCDEV(FUSE_MINOR); | 20 | MODULE_ALIAS_MISCDEV(FUSE_MINOR); |
21 | MODULE_ALIAS("devname:fuse"); | ||
21 | 22 | ||
22 | static struct kmem_cache *fuse_req_cachep; | 23 | static struct kmem_cache *fuse_req_cachep; |
23 | 24 | ||