diff options
Diffstat (limited to 'drivers/ide/sgiioc4.c')
-rw-r--r-- | drivers/ide/sgiioc4.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/ide/sgiioc4.c b/drivers/ide/sgiioc4.c index e3ea591f66d3..a5ca179a83b3 100644 --- a/drivers/ide/sgiioc4.c +++ b/drivers/ide/sgiioc4.c | |||
@@ -307,8 +307,7 @@ static u8 sgiioc4_read_status(ide_hwif_t *hwif) | |||
307 | } | 307 | } |
308 | 308 | ||
309 | /* Creates a DMA map for the scatter-gather list entries */ | 309 | /* Creates a DMA map for the scatter-gather list entries */ |
310 | static int __devinit ide_dma_sgiioc4(ide_hwif_t *hwif, | 310 | static int ide_dma_sgiioc4(ide_hwif_t *hwif, const struct ide_port_info *d) |
311 | const struct ide_port_info *d) | ||
312 | { | 311 | { |
313 | struct pci_dev *dev = to_pci_dev(hwif->dev); | 312 | struct pci_dev *dev = to_pci_dev(hwif->dev); |
314 | unsigned long dma_base = pci_resource_start(dev, 0) + IOC4_DMA_OFFSET; | 313 | unsigned long dma_base = pci_resource_start(dev, 0) + IOC4_DMA_OFFSET; |
@@ -520,7 +519,7 @@ static const struct ide_dma_ops sgiioc4_dma_ops = { | |||
520 | .dma_lost_irq = sgiioc4_dma_lost_irq, | 519 | .dma_lost_irq = sgiioc4_dma_lost_irq, |
521 | }; | 520 | }; |
522 | 521 | ||
523 | static const struct ide_port_info sgiioc4_port_info __devinitconst = { | 522 | static const struct ide_port_info sgiioc4_port_info = { |
524 | .name = DRV_NAME, | 523 | .name = DRV_NAME, |
525 | .chipset = ide_pci, | 524 | .chipset = ide_pci, |
526 | .init_dma = ide_dma_sgiioc4, | 525 | .init_dma = ide_dma_sgiioc4, |
@@ -532,7 +531,7 @@ static const struct ide_port_info sgiioc4_port_info __devinitconst = { | |||
532 | .mwdma_mask = ATA_MWDMA2_ONLY, | 531 | .mwdma_mask = ATA_MWDMA2_ONLY, |
533 | }; | 532 | }; |
534 | 533 | ||
535 | static int __devinit sgiioc4_ide_setup_pci_device(struct pci_dev *dev) | 534 | static int sgiioc4_ide_setup_pci_device(struct pci_dev *dev) |
536 | { | 535 | { |
537 | unsigned long cmd_base, irqport; | 536 | unsigned long cmd_base, irqport; |
538 | unsigned long bar0, cmd_phys_base, ctl; | 537 | unsigned long bar0, cmd_phys_base, ctl; |
@@ -581,7 +580,7 @@ req_mem_rgn_err: | |||
581 | return rc; | 580 | return rc; |
582 | } | 581 | } |
583 | 582 | ||
584 | static unsigned int __devinit pci_init_sgiioc4(struct pci_dev *dev) | 583 | static unsigned int pci_init_sgiioc4(struct pci_dev *dev) |
585 | { | 584 | { |
586 | int ret; | 585 | int ret; |
587 | 586 | ||
@@ -601,7 +600,7 @@ out: | |||
601 | return ret; | 600 | return ret; |
602 | } | 601 | } |
603 | 602 | ||
604 | int __devinit ioc4_ide_attach_one(struct ioc4_driver_data *idd) | 603 | int ioc4_ide_attach_one(struct ioc4_driver_data *idd) |
605 | { | 604 | { |
606 | /* | 605 | /* |
607 | * PCI-RT does not bring out IDE connection. | 606 | * PCI-RT does not bring out IDE connection. |
@@ -613,7 +612,7 @@ int __devinit ioc4_ide_attach_one(struct ioc4_driver_data *idd) | |||
613 | return pci_init_sgiioc4(idd->idd_pdev); | 612 | return pci_init_sgiioc4(idd->idd_pdev); |
614 | } | 613 | } |
615 | 614 | ||
616 | static struct ioc4_submodule __devinitdata ioc4_ide_submodule = { | 615 | static struct ioc4_submodule ioc4_ide_submodule = { |
617 | .is_name = "IOC4_ide", | 616 | .is_name = "IOC4_ide", |
618 | .is_owner = THIS_MODULE, | 617 | .is_owner = THIS_MODULE, |
619 | .is_probe = ioc4_ide_attach_one, | 618 | .is_probe = ioc4_ide_attach_one, |