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>
This commit is contained in:
committed by
David S. Miller
parent
8cd6d6162d
commit
8b7ff20001
@ -808,18 +808,7 @@ static struct platform_driver sh_sir_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init sh_sir_init(void)
|
||||
{
|
||||
return platform_driver_register(&sh_sir_driver);
|
||||
}
|
||||
|
||||
static void __exit sh_sir_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&sh_sir_driver);
|
||||
}
|
||||
|
||||
module_init(sh_sir_init);
|
||||
module_exit(sh_sir_exit);
|
||||
module_platform_driver(sh_sir_driver);
|
||||
|
||||
MODULE_AUTHOR("Kuninori Morimoto <morimoto.kuninori@renesas.com>");
|
||||
MODULE_DESCRIPTION("SuperH IrDA driver");
|
||||
|
Reference in New Issue
Block a user