o stallion: use module_{init,exit}, {cleanup,init}_module now are macros

parent d4bbb554
...@@ -757,7 +757,7 @@ static struct file_operations stl_fsiomem = { ...@@ -757,7 +757,7 @@ static struct file_operations stl_fsiomem = {
* Loadable module initialization stuff. * Loadable module initialization stuff.
*/ */
int init_module() static int __init stallion_module_init(void)
{ {
unsigned long flags; unsigned long flags;
...@@ -775,7 +775,7 @@ int init_module() ...@@ -775,7 +775,7 @@ int init_module()
/*****************************************************************************/ /*****************************************************************************/
void cleanup_module() static void __exit stallion_module_exit(void)
{ {
stlbrd_t *brdp; stlbrd_t *brdp;
stlpanel_t *panelp; stlpanel_t *panelp;
...@@ -851,6 +851,9 @@ void cleanup_module() ...@@ -851,6 +851,9 @@ void cleanup_module()
restore_flags(flags); restore_flags(flags);
} }
module_init(stallion_module_init);
module_exit(stallion_module_exit);
/*****************************************************************************/ /*****************************************************************************/
/* /*
......
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