Skip to content

Commit

Permalink
drivers/tty: 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
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 3e13ea4 commit 5339102
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/tty/serial/8250/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,18 +852,6 @@ static struct pcmcia_driver serial_cs_driver = {
.suspend = serial_suspend,
.resume = serial_resume,
};

static int __init init_serial_cs(void)
{
return pcmcia_register_driver(&serial_cs_driver);
}

static void __exit exit_serial_cs(void)
{
pcmcia_unregister_driver(&serial_cs_driver);
}

module_init(init_serial_cs);
module_exit(exit_serial_cs);
module_pcmcia_driver(serial_cs_driver);

MODULE_LICENSE("GPL");

0 comments on commit 5339102

Please sign in to comment.