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

ide: gayle: 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 477c17db
...@@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = { ...@@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = {
}, },
}; };
static int __init amiga_gayle_ide_init(void) module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe);
{
return platform_driver_probe(&amiga_gayle_ide_driver,
amiga_gayle_ide_probe);
}
module_init(amiga_gayle_ide_init);
static void __exit amiga_gayle_ide_exit(void)
{
platform_driver_unregister(&amiga_gayle_ide_driver);
}
module_exit(amiga_gayle_ide_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:amiga-gayle-ide"); MODULE_ALIAS("platform:amiga-gayle-ide");
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