mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 01:00:52 +07:00
drivers/ide/delkin_cb: Convert to module_pci_driver
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen <libo.chen@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf6b4388c6
commit
99bfdd8786
@ -173,18 +173,7 @@ static struct pci_driver delkin_cb_pci_driver = {
|
||||
.resume = delkin_cb_resume,
|
||||
};
|
||||
|
||||
static int __init delkin_cb_init(void)
|
||||
{
|
||||
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_pci_driver(delkin_cb_pci_driver);
|
||||
|
||||
MODULE_AUTHOR("Mark Lord");
|
||||
MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus IDE");
|
||||
|
Loading…
Reference in New Issue
Block a user