Merge tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/git/arnd...
[linux-2.6-block.git] / net / rfkill / core.c
index c4be6a94ba97993d68fe562cf4c7a4f7282ededc..461d75274fb3c71e2825bd1c9404505b655df4b3 100644 (file)
@@ -1316,10 +1316,12 @@ static const struct file_operations rfkill_fops = {
        .llseek         = no_llseek,
 };
 
+#define RFKILL_NAME "rfkill"
+
 static struct miscdevice rfkill_miscdev = {
-       .name   = "rfkill",
        .fops   = &rfkill_fops,
-       .minor  = MISC_DYNAMIC_MINOR,
+       .name   = RFKILL_NAME,
+       .minor  = RFKILL_MINOR,
 };
 
 static int __init rfkill_init(void)
@@ -1371,3 +1373,6 @@ static void __exit rfkill_exit(void)
        class_unregister(&rfkill_class);
 }
 module_exit(rfkill_exit);
+
+MODULE_ALIAS_MISCDEV(RFKILL_MINOR);
+MODULE_ALIAS("devname:" RFKILL_NAME);