Commit 95d158df authored by Sachin Kamat's avatar Sachin Kamat Committed by David S. Miller

net: au1k_ir: Use module_platform_driver()

module_platform_driver macro removes some boilerplate and
simplifies the code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d749683
...@@ -953,18 +953,7 @@ static struct platform_driver au1k_irda_driver = { ...@@ -953,18 +953,7 @@ static struct platform_driver au1k_irda_driver = {
.remove = au1k_irda_remove, .remove = au1k_irda_remove,
}; };
static int __init au1k_irda_load(void) module_platform_driver(au1k_irda_driver);
{
return platform_driver_register(&au1k_irda_driver);
}
static void __exit au1k_irda_unload(void)
{
return platform_driver_unregister(&au1k_irda_driver);
}
MODULE_AUTHOR("Pete Popov <ppopov@mvista.com>"); MODULE_AUTHOR("Pete Popov <ppopov@mvista.com>");
MODULE_DESCRIPTION("Au1000 IrDA Device Driver"); MODULE_DESCRIPTION("Au1000 IrDA Device Driver");
module_init(au1k_irda_load);
module_exit(au1k_irda_unload);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment