diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:24 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:24 -0400 |
commit | 991f5e69c512b284aaec81432dff0440b2a2f418 (patch) | |
tree | 68be818f3f32884321739c712abf41bb3ca8b6f7 /drivers/ide/pci | |
parent | 0fd188047ca75df85191cc55f929cb2889631430 (diff) |
sc1200: add ->remove method and module_exit()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci')
-rw-r--r-- | drivers/ide/pci/sc1200.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ide/pci/sc1200.c b/drivers/ide/pci/sc1200.c index fa2ce76837d0..6509560ba665 100644 --- a/drivers/ide/pci/sc1200.c +++ b/drivers/ide/pci/sc1200.c | |||
@@ -329,6 +329,7 @@ static struct pci_driver driver = { | |||
329 | .name = "SC1200_IDE", | 329 | .name = "SC1200_IDE", |
330 | .id_table = sc1200_pci_tbl, | 330 | .id_table = sc1200_pci_tbl, |
331 | .probe = sc1200_init_one, | 331 | .probe = sc1200_init_one, |
332 | .remove = ide_pci_remove, | ||
332 | #ifdef CONFIG_PM | 333 | #ifdef CONFIG_PM |
333 | .suspend = sc1200_suspend, | 334 | .suspend = sc1200_suspend, |
334 | .resume = sc1200_resume, | 335 | .resume = sc1200_resume, |
@@ -340,7 +341,13 @@ static int __init sc1200_ide_init(void) | |||
340 | return ide_pci_register_driver(&driver); | 341 | return ide_pci_register_driver(&driver); |
341 | } | 342 | } |
342 | 343 | ||
344 | static void __exit sc1200_ide_exit(void) | ||
345 | { | ||
346 | pci_unregister_driver(&driver); | ||
347 | } | ||
348 | |||
343 | module_init(sc1200_ide_init); | 349 | module_init(sc1200_ide_init); |
350 | module_exit(sc1200_ide_exit); | ||
344 | 351 | ||
345 | MODULE_AUTHOR("Mark Lord"); | 352 | MODULE_AUTHOR("Mark Lord"); |
346 | MODULE_DESCRIPTION("PCI driver module for NS SC1200 IDE"); | 353 | MODULE_DESCRIPTION("PCI driver module for NS SC1200 IDE"); |