drivers/isdn: use module_pcmcia_driver() in pcmcia drivers
Use the new module_pcmcia_driver() macro to remove the boilerplate module init/exit code in the pcmcia drivers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
e0c005f4b9
commit
0aae9c6a91
@@ -163,16 +163,4 @@ static struct pcmcia_driver avmcs_driver = {
|
||||
.remove = avmcs_detach,
|
||||
.id_table = avmcs_ids,
|
||||
};
|
||||
|
||||
static int __init avmcs_init(void)
|
||||
{
|
||||
return pcmcia_register_driver(&avmcs_driver);
|
||||
}
|
||||
|
||||
static void __exit avmcs_exit(void)
|
||||
{
|
||||
pcmcia_unregister_driver(&avmcs_driver);
|
||||
}
|
||||
|
||||
module_init(avmcs_init);
|
||||
module_exit(avmcs_exit);
|
||||
module_pcmcia_driver(avmcs_driver);
|
||||
|
Reference in New Issue
Block a user