From: Libo Chen Date: Wed, 19 Jun 2013 00:05:35 +0000 (+1000) Subject: drivers/ide/delkin_cb.c: convert to module_pci_driver X-Git-Tag: next-20130619~2^2~612 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b38a6008b04d7fd62d4cbd02d5a7030d78e19606;p=karo-tx-linux.git drivers/ide/delkin_cb.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: David Miller Signed-off-by: Andrew Morton --- diff --git a/drivers/ide/delkin_cb.c b/drivers/ide/delkin_cb.c index 7e27d3295e55..300daabaa575 100644 --- a/drivers/ide/delkin_cb.c +++ b/drivers/ide/delkin_cb.c @@ -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");