We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cd23e commit a916d72Copy full SHA for a916d72
drivers/leds/uleds.c
@@ -209,17 +209,7 @@ static struct miscdevice uleds_misc = {
209
.name = ULEDS_NAME,
210
};
211
212
-static int __init uleds_init(void)
213
-{
214
- return misc_register(&uleds_misc);
215
-}
216
-module_init(uleds_init);
217
-
218
-static void __exit uleds_exit(void)
219
220
- misc_deregister(&uleds_misc);
221
222
-module_exit(uleds_exit);
+module_misc_device(uleds_misc);
223
224
MODULE_AUTHOR("David Lechner <[email protected]>");
225
MODULE_DESCRIPTION("Userspace driver for the LED subsystem");
0 commit comments