mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
drivers/net: 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:
parent
b85c4a18f6
commit
fdd3f29edd
19 changed files with 22 additions and 250 deletions
|
@ -709,17 +709,4 @@ static struct pcmcia_driver hostap_driver = {
|
|||
.suspend = hostap_cs_suspend,
|
||||
.resume = hostap_cs_resume,
|
||||
};
|
||||
|
||||
static int __init init_prism2_pccard(void)
|
||||
{
|
||||
return pcmcia_register_driver(&hostap_driver);
|
||||
}
|
||||
|
||||
static void __exit exit_prism2_pccard(void)
|
||||
{
|
||||
pcmcia_unregister_driver(&hostap_driver);
|
||||
}
|
||||
|
||||
|
||||
module_init(init_prism2_pccard);
|
||||
module_exit(exit_prism2_pccard);
|
||||
module_pcmcia_driver(hostap_driver);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue