Commit 99bfdd87 authored by Libo Chen's avatar Libo Chen Committed by David S. Miller

drivers/ide/delkin_cb: Convert to module_pci_driver

use module_pci_driver instead of init/exit, make code clean.
Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf6b4388
...@@ -173,18 +173,7 @@ static struct pci_driver delkin_cb_pci_driver = { ...@@ -173,18 +173,7 @@ static struct pci_driver delkin_cb_pci_driver = {
.resume = delkin_cb_resume, .resume = delkin_cb_resume,
}; };
static int __init delkin_cb_init(void) module_pci_driver(delkin_cb_pci_driver);
{
return pci_register_driver(&delkin_cb_pci_driver);
}
static void __exit delkin_cb_exit(void)
{
pci_unregister_driver(&delkin_cb_pci_driver);
}
module_init(delkin_cb_init);
module_exit(delkin_cb_exit);
MODULE_AUTHOR("Mark Lord"); MODULE_AUTHOR("Mark Lord");
MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus IDE"); MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus 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