From: Sachin Kamat Date: Wed, 20 Mar 2013 01:41:30 +0000 (+0000) Subject: net: au1k_ir: Use module_platform_driver() X-Git-Tag: MMI-PSA29.97-13-9~14469^2~409 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95d158df4459016c98e8dae2229d12be09d79324;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: au1k_ir: Use module_platform_driver() module_platform_driver macro removes some boilerplate and simplifies the code. Signed-off-by: Sachin Kamat Cc: Samuel Ortiz Signed-off-by: David S. Miller --- diff --git a/drivers/net/irda/au1k_ir.c b/drivers/net/irda/au1k_ir.c index 56f1e6d6e4eb..7a1f684edcb5 100644 --- a/drivers/net/irda/au1k_ir.c +++ b/drivers/net/irda/au1k_ir.c @@ -953,18 +953,7 @@ static struct platform_driver au1k_irda_driver = { .remove = au1k_irda_remove, }; -static int __init au1k_irda_load(void) -{ - return platform_driver_register(&au1k_irda_driver); -} - -static void __exit au1k_irda_unload(void) -{ - return platform_driver_unregister(&au1k_irda_driver); -} +module_platform_driver(au1k_irda_driver); MODULE_AUTHOR("Pete Popov "); MODULE_DESCRIPTION("Au1000 IrDA Device Driver"); - -module_init(au1k_irda_load); -module_exit(au1k_irda_unload);