Commit 39aa91e2 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Thomas Zimmermann

fbdev: matrox: use modern module_init()

This is one of the last drivers with a global init_module() function
instead of the modern module_init() annotation. Convert it over.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210514213316.635070-1-arnd@kernel.org
parent b3484d2b
...@@ -2486,8 +2486,6 @@ static int __init matroxfb_init(void) ...@@ -2486,8 +2486,6 @@ static int __init matroxfb_init(void)
return err; return err;
} }
module_init(matroxfb_init);
#else #else
/* *************************** init module code **************************** */ /* *************************** init module code **************************** */
...@@ -2572,7 +2570,7 @@ module_param_named(cmode, default_cmode, int, 0); ...@@ -2572,7 +2570,7 @@ module_param_named(cmode, default_cmode, int, 0);
MODULE_PARM_DESC(cmode, "Specify the video depth that should be used (8bit default)"); MODULE_PARM_DESC(cmode, "Specify the video depth that should be used (8bit default)");
#endif #endif
int __init init_module(void){ static int __init matroxfb_init(void){
DBG(__func__) DBG(__func__)
...@@ -2603,6 +2601,7 @@ int __init init_module(void){ ...@@ -2603,6 +2601,7 @@ int __init init_module(void){
} }
#endif /* MODULE */ #endif /* MODULE */
module_init(matroxfb_init);
module_exit(matrox_done); module_exit(matrox_done);
EXPORT_SYMBOL(matroxfb_register_driver); EXPORT_SYMBOL(matroxfb_register_driver);
EXPORT_SYMBOL(matroxfb_unregister_driver); EXPORT_SYMBOL(matroxfb_unregister_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment