diff options
Diffstat (limited to 'drivers/ide/pci/ns87415.c')
-rw-r--r-- | drivers/ide/pci/ns87415.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/ide/pci/ns87415.c b/drivers/ide/pci/ns87415.c index 5cd2b32ff0ef..ffefcd15196c 100644 --- a/drivers/ide/pci/ns87415.c +++ b/drivers/ide/pci/ns87415.c | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | 21 | ||
22 | #define DRV_NAME "ns87415" | ||
23 | |||
22 | #ifdef CONFIG_SUPERIO | 24 | #ifdef CONFIG_SUPERIO |
23 | /* SUPERIO 87560 is a PoS chip that NatSem denies exists. | 25 | /* SUPERIO 87560 is a PoS chip that NatSem denies exists. |
24 | * Unfortunately, it's built-in on all Astro-based PA-RISC workstations | 26 | * Unfortunately, it's built-in on all Astro-based PA-RISC workstations |
@@ -305,7 +307,7 @@ static const struct ide_dma_ops ns87415_dma_ops = { | |||
305 | }; | 307 | }; |
306 | 308 | ||
307 | static const struct ide_port_info ns87415_chipset __devinitdata = { | 309 | static const struct ide_port_info ns87415_chipset __devinitdata = { |
308 | .name = "NS87415", | 310 | .name = DRV_NAME, |
309 | .init_hwif = init_hwif_ns87415, | 311 | .init_hwif = init_hwif_ns87415, |
310 | .port_ops = &ns87415_port_ops, | 312 | .port_ops = &ns87415_port_ops, |
311 | .dma_ops = &ns87415_dma_ops, | 313 | .dma_ops = &ns87415_dma_ops, |
@@ -324,7 +326,7 @@ static int __devinit ns87415_init_one(struct pci_dev *dev, const struct pci_devi | |||
324 | d.tp_ops = &superio_tp_ops; | 326 | d.tp_ops = &superio_tp_ops; |
325 | } | 327 | } |
326 | #endif | 328 | #endif |
327 | return ide_setup_pci_device(dev, &d); | 329 | return ide_pci_init_one(dev, &d, NULL); |
328 | } | 330 | } |
329 | 331 | ||
330 | static const struct pci_device_id ns87415_pci_tbl[] = { | 332 | static const struct pci_device_id ns87415_pci_tbl[] = { |
@@ -337,6 +339,7 @@ static struct pci_driver driver = { | |||
337 | .name = "NS87415_IDE", | 339 | .name = "NS87415_IDE", |
338 | .id_table = ns87415_pci_tbl, | 340 | .id_table = ns87415_pci_tbl, |
339 | .probe = ns87415_init_one, | 341 | .probe = ns87415_init_one, |
342 | .remove = ide_pci_remove, | ||
340 | }; | 343 | }; |
341 | 344 | ||
342 | static int __init ns87415_ide_init(void) | 345 | static int __init ns87415_ide_init(void) |
@@ -344,7 +347,13 @@ static int __init ns87415_ide_init(void) | |||
344 | return ide_pci_register_driver(&driver); | 347 | return ide_pci_register_driver(&driver); |
345 | } | 348 | } |
346 | 349 | ||
350 | static void __exit ns87415_ide_exit(void) | ||
351 | { | ||
352 | pci_unregister_driver(&driver); | ||
353 | } | ||
354 | |||
347 | module_init(ns87415_ide_init); | 355 | module_init(ns87415_ide_init); |
356 | module_exit(ns87415_ide_exit); | ||
348 | 357 | ||
349 | MODULE_AUTHOR("Mark Lord, Eddie Dost, Andre Hedrick"); | 358 | MODULE_AUTHOR("Mark Lord, Eddie Dost, Andre Hedrick"); |
350 | MODULE_DESCRIPTION("PCI driver module for NS87415 IDE"); | 359 | MODULE_DESCRIPTION("PCI driver module for NS87415 IDE"); |