aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/pxaficp_ir.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-27 20:29:11 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-27 20:29:11 -0500
commit8b7ff200010600ef7cd9d002f9f8f97edfc7578e (patch)
tree4b3f52568d0b7ffcca9922be979ac4c65be4de5b /drivers/net/irda/pxaficp_ir.c
parent8cd6d6162d998da579d40a1ee061bf8ce1610ff8 (diff)
net/irda: convert drivers/net/irda/* to use module_platform_driver()
This patch converts the drivers in drivers/net/irda/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/pxaficp_ir.c')
-rw-r--r--drivers/net/irda/pxaficp_ir.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c
index d0851dfa0378..81d5275a15e2 100644
--- a/drivers/net/irda/pxaficp_ir.c
+++ b/drivers/net/irda/pxaficp_ir.c
@@ -966,18 +966,7 @@ static struct platform_driver pxa_ir_driver = {
966 .resume = pxa_irda_resume, 966 .resume = pxa_irda_resume,
967}; 967};
968 968
969static int __init pxa_irda_init(void) 969module_platform_driver(pxa_ir_driver);
970{
971 return platform_driver_register(&pxa_ir_driver);
972}
973
974static void __exit pxa_irda_exit(void)
975{
976 platform_driver_unregister(&pxa_ir_driver);
977}
978
979module_init(pxa_irda_init);
980module_exit(pxa_irda_exit);
981 970
982MODULE_LICENSE("GPL"); 971MODULE_LICENSE("GPL");
983MODULE_ALIAS("platform:pxa2xx-ir"); 972MODULE_ALIAS("platform:pxa2xx-ir");