aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/bfin_sir.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/bfin_sir.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/bfin_sir.c')
-rw-r--r--drivers/net/irda/bfin_sir.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/irda/bfin_sir.c b/drivers/net/irda/bfin_sir.c
index 9d4ce1aba10c..a561ae44a9ac 100644
--- a/drivers/net/irda/bfin_sir.c
+++ b/drivers/net/irda/bfin_sir.c
@@ -806,18 +806,7 @@ static struct platform_driver bfin_ir_driver = {
806 }, 806 },
807}; 807};
808 808
809static int __init bfin_sir_init(void) 809module_platform_driver(bfin_ir_driver);
810{
811 return platform_driver_register(&bfin_ir_driver);
812}
813
814static void __exit bfin_sir_exit(void)
815{
816 platform_driver_unregister(&bfin_ir_driver);
817}
818
819module_init(bfin_sir_init);
820module_exit(bfin_sir_exit);
821 810
822module_param(max_rate, int, 0); 811module_param(max_rate, int, 0);
823MODULE_PARM_DESC(max_rate, "Maximum baud rate (115200, 57600, 38400, 19200, 9600)"); 812MODULE_PARM_DESC(max_rate, "Maximum baud rate (115200, 57600, 38400, 19200, 9600)");