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) | |
download | talos-op-linux-8b7ff200010600ef7cd9d002f9f8f97edfc7578e.tar.gz talos-op-linux-8b7ff200010600ef7cd9d002f9f8f97edfc7578e.zip |
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 = { }, }; -static int __init bfin_sir_init(void) -{ - return platform_driver_register(&bfin_ir_driver); -} - -static void __exit bfin_sir_exit(void) -{ - platform_driver_unregister(&bfin_ir_driver); -} - -module_init(bfin_sir_init); -module_exit(bfin_sir_exit); +module_platform_driver(bfin_ir_driver); module_param(max_rate, int, 0); MODULE_PARM_DESC(max_rate, "Maximum baud rate (115200, 57600, 38400, 19200, 9600)"); |