Skip to content

Commit

Permalink
drivers/usb: use module_pcmcia_driver() in pcmcia drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bigguiness authored and gregkh committed Mar 15, 2013
1 parent 5339102 commit 4c7a45f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/usb/host/sl811_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,4 @@ static struct pcmcia_driver sl811_cs_driver = {
.remove = sl811_cs_detach,
.id_table = sl811_ids,
};

/*====================================================================*/

static int __init init_sl811_cs(void)
{
return pcmcia_register_driver(&sl811_cs_driver);
}
module_init(init_sl811_cs);

static void __exit exit_sl811_cs(void)
{
pcmcia_unregister_driver(&sl811_cs_driver);
}
module_exit(exit_sl811_cs);
module_pcmcia_driver(sl811_cs_driver);

0 comments on commit 4c7a45f

Please sign in to comment.