Skip to content

Commit

Permalink
drivers/ide/delkin_cb: Convert to module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Libo Chen authored and David S. Miller committed Jul 10, 2013
1 parent bf6b438 commit 99bfdd8
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/ide/delkin_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 99bfdd8

Please sign in to comment.