Commit b543a8d8 authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

net: macb: use module_platform_driver_probe()

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecad0a68
...@@ -1737,18 +1737,7 @@ static struct platform_driver macb_driver = { ...@@ -1737,18 +1737,7 @@ static struct platform_driver macb_driver = {
}, },
}; };
static int __init macb_init(void) module_platform_driver_probe(macb_driver, macb_probe);
{
return platform_driver_probe(&macb_driver, macb_probe);
}
static void __exit macb_exit(void)
{
platform_driver_unregister(&macb_driver);
}
module_init(macb_init);
module_exit(macb_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Cadence MACB/GEM Ethernet driver"); MODULE_DESCRIPTION("Cadence MACB/GEM Ethernet driver");
......
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