diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-ioctl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 4d4ced8e4307..3e39193e5036 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -1599,12 +1599,15 @@ static const struct file_operations _ctl_fops = { | |||
1599 | }; | 1599 | }; |
1600 | 1600 | ||
1601 | static struct miscdevice _dm_misc = { | 1601 | static struct miscdevice _dm_misc = { |
1602 | .minor = MISC_DYNAMIC_MINOR, | 1602 | .minor = MAPPER_CTRL_MINOR, |
1603 | .name = DM_NAME, | 1603 | .name = DM_NAME, |
1604 | .nodename = "mapper/control", | 1604 | .nodename = DM_DIR "/" DM_CONTROL_NODE, |
1605 | .fops = &_ctl_fops | 1605 | .fops = &_ctl_fops |
1606 | }; | 1606 | }; |
1607 | 1607 | ||
1608 | MODULE_ALIAS_MISCDEV(MAPPER_CTRL_MINOR); | ||
1609 | MODULE_ALIAS("devname:" DM_DIR "/" DM_CONTROL_NODE); | ||
1610 | |||
1608 | /* | 1611 | /* |
1609 | * Create misc character device and link to DM_DIR/control. | 1612 | * Create misc character device and link to DM_DIR/control. |
1610 | */ | 1613 | */ |