提交 9a99e476 编写于 作者: B Brian Norris 提交者: Jeff Garzik

ahci_platform: convert to module_platform_driver

The ahci_platform driver can now use the module_platform_driver() macro.
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 941c77fd
......@@ -336,18 +336,7 @@ static struct platform_driver ahci_driver = {
},
.id_table = ahci_devtype,
};
static int __init ahci_init(void)
{
return platform_driver_register(&ahci_driver);
}
module_init(ahci_init);
static void __exit ahci_exit(void)
{
platform_driver_unregister(&ahci_driver);
}
module_exit(ahci_exit);
module_platform_driver(ahci_driver);
MODULE_DESCRIPTION("AHCI SATA platform driver");
MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册