Commit fdd3f29e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b85c4a18
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -333,16 +333,4 @@ static struct pcmcia_driver com20020_cs_driver = {
	.suspend	= com20020_suspend,
	.resume		= com20020_resume,
};

static int __init init_com20020_cs(void)
{
	return pcmcia_register_driver(&com20020_cs_driver);
}

static void __exit exit_com20020_cs(void)
{
	pcmcia_unregister_driver(&com20020_cs_driver);
}

module_init(init_com20020_cs);
module_exit(exit_com20020_cs);
module_pcmcia_driver(com20020_cs_driver);
+1 −12
Original line number Diff line number Diff line
@@ -316,15 +316,4 @@ static struct pcmcia_driver ems_pcmcia_driver = {
	.remove = ems_pcmcia_remove,
	.id_table = ems_pcmcia_tbl,
};

static int __init ems_pcmcia_init(void)
{
	return pcmcia_register_driver(&ems_pcmcia_driver);
}
module_init(ems_pcmcia_init);

static void __exit ems_pcmcia_exit(void)
{
	pcmcia_unregister_driver(&ems_pcmcia_driver);
}
module_exit(ems_pcmcia_exit);
module_pcmcia_driver(ems_pcmcia_driver);
+1 −12
Original line number Diff line number Diff line
@@ -740,15 +740,4 @@ static struct pcmcia_driver pcan_driver = {
	.remove = pcan_remove,
	.id_table = pcan_table,
};

static int __init pcan_init(void)
{
	return pcmcia_register_driver(&pcan_driver);
}
module_init(pcan_init);

static void __exit pcan_exit(void)
{
	pcmcia_unregister_driver(&pcan_driver);
}
module_exit(pcan_exit);
module_pcmcia_driver(pcan_driver);
+1 −13
Original line number Diff line number Diff line
@@ -1165,16 +1165,4 @@ static struct pcmcia_driver tc574_driver = {
	.suspend	= tc574_suspend,
	.resume		= tc574_resume,
};

static int __init init_tc574(void)
{
	return pcmcia_register_driver(&tc574_driver);
}

static void __exit exit_tc574(void)
{
	pcmcia_unregister_driver(&tc574_driver);
}

module_init(init_tc574);
module_exit(exit_tc574);
module_pcmcia_driver(tc574_driver);
+1 −13
Original line number Diff line number Diff line
@@ -928,16 +928,4 @@ static struct pcmcia_driver tc589_driver = {
	.suspend	= tc589_suspend,
	.resume		= tc589_resume,
};

static int __init init_tc589(void)
{
	return pcmcia_register_driver(&tc589_driver);
}

static void __exit exit_tc589(void)
{
	pcmcia_unregister_driver(&tc589_driver);
}

module_init(init_tc589);
module_exit(exit_tc589);
module_pcmcia_driver(tc589_driver);
Loading