diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/super.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |