Commit 8c8147cd authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Remove remaining MOD_{INC,DEC}_USE_COUNT from CAPI drivers

During module init, we're safe from getting unloaded, so there's no
need to fiddle with the use count.
parent 5e8a4a7d
......@@ -178,8 +178,6 @@ static int __init b1isa_init(void)
int i, retval;
int found = 0;
MOD_INC_USE_COUNT;
b1_set_revision(&b1isa_driver, revision);
attach_capi_driver(&b1isa_driver);
......@@ -203,7 +201,6 @@ static int __init b1isa_init(void)
err:
detach_capi_driver(&b1isa_driver);
out:
MOD_DEC_USE_COUNT;
return retval;
}
......
......@@ -397,8 +397,6 @@ static int __init b1pci_init(void)
{
int retval;
MOD_INC_USE_COUNT;
b1_set_revision(&b1pci_driver, revision);
attach_capi_driver(&b1pci_driver);
......@@ -422,7 +420,6 @@ static int __init b1pci_init(void)
detach_capi_driver(&b1pciv4_driver);
#endif
out:
MOD_DEC_USE_COUNT;
return retval;
}
......
......@@ -200,12 +200,9 @@ EXPORT_SYMBOL(b1pcmcia_delcard);
static int __init b1pcmcia_init(void)
{
MOD_INC_USE_COUNT;
b1_set_revision(&b1pcmcia_driver, revision);
attach_capi_driver(&b1pcmcia_driver);
MOD_DEC_USE_COUNT;
return 0;
}
......
......@@ -1282,8 +1282,6 @@ static int __init c4_init(void)
{
int retval;
MOD_INC_USE_COUNT;
b1_set_revision(&c2_driver, revision);
attach_capi_driver(&c2_driver);
......@@ -1304,7 +1302,6 @@ static int __init c4_init(void)
detach_capi_driver(&c2_driver);
detach_capi_driver(&c4_driver);
out:
MOD_DEC_USE_COUNT;
return retval;
}
......
......@@ -516,8 +516,6 @@ static int __init t1isa_init(void)
int i, retval;
int found = 0;
MOD_INC_USE_COUNT;
b1_set_revision(&t1isa_driver, revision);
attach_capi_driver(&t1isa_driver);
......@@ -541,7 +539,6 @@ static int __init t1isa_init(void)
err:
detach_capi_driver(&t1isa_driver);
out:
MOD_DEC_USE_COUNT;
return retval;
}
......
......@@ -239,8 +239,6 @@ static int __init t1pci_init(void)
{
int retval;
MOD_INC_USE_COUNT;
b1_set_revision(&t1pci_driver, revision);
attach_capi_driver(&t1pci_driver);
......@@ -256,7 +254,6 @@ static int __init t1pci_init(void)
err:
detach_capi_driver(&t1pci_driver);
out:
MOD_DEC_USE_COUNT;
return retval;
}
......
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