diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-27 20:29:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-27 20:29:11 -0500 |
commit | 8b7ff200010600ef7cd9d002f9f8f97edfc7578e (patch) | |
tree | 4b3f52568d0b7ffcca9922be979ac4c65be4de5b /drivers/net/irda/bfin_sir.c | |
parent | 8cd6d6162d998da579d40a1ee061bf8ce1610ff8 (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.c | 13 |
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 | ||
809 | static int __init bfin_sir_init(void) | 809 | module_platform_driver(bfin_ir_driver); |
810 | { | ||
811 | return platform_driver_register(&bfin_ir_driver); | ||
812 | } | ||
813 | |||
814 | static void __exit bfin_sir_exit(void) | ||
815 | { | ||
816 | platform_driver_unregister(&bfin_ir_driver); | ||
817 | } | ||
818 | |||
819 | module_init(bfin_sir_init); | ||
820 | module_exit(bfin_sir_exit); | ||
821 | 810 | ||
822 | module_param(max_rate, int, 0); | 811 | module_param(max_rate, int, 0); |
823 | MODULE_PARM_DESC(max_rate, "Maximum baud rate (115200, 57600, 38400, 19200, 9600)"); | 812 | MODULE_PARM_DESC(max_rate, "Maximum baud rate (115200, 57600, 38400, 19200, 9600)"); |