isdn/eicon: use standard __init,__exit function markup
Remove the custom DIVA_{INIT,EXIT}_FUNCTION defines and use the standard __init,__exit markup. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Armin Schindler <mac@melware.de> Cc: Karsten Keil <isdn@linux-pingi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1120,7 +1120,7 @@ int fax_head_line_time(char *buffer)
|
||||
/*
|
||||
* init (alloc) main structures
|
||||
*/
|
||||
static int DIVA_INIT_FUNCTION init_main_structs(void)
|
||||
static int __init init_main_structs(void)
|
||||
{
|
||||
if (!(mapped_msg = (CAPI_MSG *) diva_os_malloc(0, MAX_MSG_SIZE))) {
|
||||
DBG_ERR(("init: failed alloc mapped_msg."))
|
||||
@@ -1181,7 +1181,7 @@ static void do_api_remove_start(void)
|
||||
/*
|
||||
* init
|
||||
*/
|
||||
int DIVA_INIT_FUNCTION init_capifunc(void)
|
||||
int __init init_capifunc(void)
|
||||
{
|
||||
diva_os_initialize_spin_lock(&api_lock, "capifunc");
|
||||
memset(ControllerMap, 0, MAX_DESCRIPTORS + 1);
|
||||
@@ -1209,7 +1209,7 @@ int DIVA_INIT_FUNCTION init_capifunc(void)
|
||||
/*
|
||||
* finit
|
||||
*/
|
||||
void DIVA_EXIT_FUNCTION finit_capifunc(void)
|
||||
void __exit finit_capifunc(void)
|
||||
{
|
||||
do_api_remove_start();
|
||||
divacapi_disconnect_didd();
|
||||
|
مرجع در شماره جدید
Block a user