diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-05-26 22:28:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-10 15:09:10 -0400 |
commit | 99bfdd878693f440e723a7b33ccedd0b9dc1ca16 (patch) | |
tree | 74a4727d026f5d21e260a4a01a4cb0a5b463622b /drivers/ide | |
parent | bf6b4388c61cf88c6faa19cc45390fd36be8fb66 (diff) |
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>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/delkin_cb.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 = { | |||
173 | .resume = delkin_cb_resume, | 173 | .resume = delkin_cb_resume, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static int __init delkin_cb_init(void) | 176 | module_pci_driver(delkin_cb_pci_driver); |
177 | { | ||
178 | return pci_register_driver(&delkin_cb_pci_driver); | ||
179 | } | ||
180 | |||
181 | static void __exit delkin_cb_exit(void) | ||
182 | { | ||
183 | pci_unregister_driver(&delkin_cb_pci_driver); | ||
184 | } | ||
185 | |||
186 | module_init(delkin_cb_init); | ||
187 | module_exit(delkin_cb_exit); | ||
188 | 177 | ||
189 | MODULE_AUTHOR("Mark Lord"); | 178 | MODULE_AUTHOR("Mark Lord"); |
190 | MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus IDE"); | 179 | MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus IDE"); |