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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
477c17dba1
Коммит
bf6b4388c6
|
@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init amiga_gayle_ide_init(void)
|
||||
{
|
||||
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_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:amiga-gayle-ide");
|
||||
|
|
Загрузка…
Ссылка в новой задаче