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

parent 19c109a3
...@@ -141,12 +141,6 @@ static struct timer_list epca_timer; ...@@ -141,12 +141,6 @@ static struct timer_list epca_timer;
configured. configured.
----------------------------------------------------------------------- */ ----------------------------------------------------------------------- */
#ifdef MODULE
int init_module(void);
void cleanup_module(void);
#endif /* MODULE */
static inline void memwinon(struct board_info *b, unsigned int win); static inline void memwinon(struct board_info *b, unsigned int win);
static inline void memwinoff(struct board_info *b, unsigned int win); static inline void memwinoff(struct board_info *b, unsigned int win);
static inline void globalwinon(struct channel *ch); static inline void globalwinon(struct channel *ch);
...@@ -1534,8 +1528,7 @@ static int pc_open(struct tty_struct *tty, struct file * filp) ...@@ -1534,8 +1528,7 @@ static int pc_open(struct tty_struct *tty, struct file * filp)
} /* End pc_open */ } /* End pc_open */
#ifdef MODULE #ifdef MODULE
/* -------------------- Begin init_module ---------------------- */ static int __init epca_module_init(void)
int __init init_module()
{ /* Begin init_module */ { /* Begin init_module */
unsigned long flags; unsigned long flags;
...@@ -1548,8 +1541,9 @@ int __init init_module() ...@@ -1548,8 +1541,9 @@ int __init init_module()
restore_flags(flags); restore_flags(flags);
return(0); return(0);
} /* End init_module */ }
module_init(epca_module_init);
#endif #endif
#ifdef ENABLE_PCI #ifdef ENABLE_PCI
...@@ -1559,8 +1553,8 @@ static struct pci_driver epca_driver; ...@@ -1559,8 +1553,8 @@ static struct pci_driver epca_driver;
#ifdef MODULE #ifdef MODULE
/* -------------------- Begin cleanup_module ---------------------- */ /* -------------------- Begin cleanup_module ---------------------- */
void cleanup_module() static void __exit epca_module_exit(void)
{ /* Begin cleanup_module */ {
int count, crd; int count, crd;
struct board_info *bd; struct board_info *bd;
...@@ -1613,7 +1607,8 @@ void cleanup_module() ...@@ -1613,7 +1607,8 @@ void cleanup_module()
restore_flags(flags); restore_flags(flags);
} /* End cleanup_module */ }
module_exit(epca_module_exit);
#endif /* MODULE */ #endif /* MODULE */
/* ------------------ Begin pc_init ---------------------- */ /* ------------------ Begin pc_init ---------------------- */
......
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