aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/scc_pata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/scc_pata.c')
-rw-r--r--drivers/ide/scc_pata.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/ide/scc_pata.c b/drivers/ide/scc_pata.c
index 970103810021..2a2d188b5d5b 100644
--- a/drivers/ide/scc_pata.c
+++ b/drivers/ide/scc_pata.c
@@ -585,8 +585,7 @@ static int scc_ide_setup_pci_device(struct pci_dev *dev,
585 * Perform the initial set up for this device. 585 * Perform the initial set up for this device.
586 */ 586 */
587 587
588static int __devinit init_setup_scc(struct pci_dev *dev, 588static int init_setup_scc(struct pci_dev *dev, const struct ide_port_info *d)
589 const struct ide_port_info *d)
590{ 589{
591 unsigned long ctl_base; 590 unsigned long ctl_base;
592 unsigned long dma_base; 591 unsigned long dma_base;
@@ -718,7 +717,7 @@ static void scc_output_data(ide_drive_t *drive, struct ide_cmd *cmd,
718 * 717 *
719 */ 718 */
720 719
721static void __devinit init_mmio_iops_scc(ide_hwif_t *hwif) 720static void init_mmio_iops_scc(ide_hwif_t *hwif)
722{ 721{
723 struct pci_dev *dev = to_pci_dev(hwif->dev); 722 struct pci_dev *dev = to_pci_dev(hwif->dev);
724 struct scc_ports *ports = pci_get_drvdata(dev); 723 struct scc_ports *ports = pci_get_drvdata(dev);
@@ -738,7 +737,7 @@ static void __devinit init_mmio_iops_scc(ide_hwif_t *hwif)
738 * and then do the MMIO setup. 737 * and then do the MMIO setup.
739 */ 738 */
740 739
741static void __devinit init_iops_scc(ide_hwif_t *hwif) 740static void init_iops_scc(ide_hwif_t *hwif)
742{ 741{
743 struct pci_dev *dev = to_pci_dev(hwif->dev); 742 struct pci_dev *dev = to_pci_dev(hwif->dev);
744 743
@@ -748,8 +747,7 @@ static void __devinit init_iops_scc(ide_hwif_t *hwif)
748 init_mmio_iops_scc(hwif); 747 init_mmio_iops_scc(hwif);
749} 748}
750 749
751static int __devinit scc_init_dma(ide_hwif_t *hwif, 750static int scc_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
752 const struct ide_port_info *d)
753{ 751{
754 return ide_allocate_dma_engine(hwif); 752 return ide_allocate_dma_engine(hwif);
755} 753}
@@ -768,7 +766,7 @@ static u8 scc_cable_detect(ide_hwif_t *hwif)
768 * ide DMA handlers appropriately. 766 * ide DMA handlers appropriately.
769 */ 767 */
770 768
771static void __devinit init_hwif_scc(ide_hwif_t *hwif) 769static void init_hwif_scc(ide_hwif_t *hwif)
772{ 770{
773 /* PTERADD */ 771 /* PTERADD */
774 out_be32((void __iomem *)(hwif->dma_base + 0x018), hwif->dmatable_dma); 772 out_be32((void __iomem *)(hwif->dma_base + 0x018), hwif->dmatable_dma);
@@ -811,7 +809,7 @@ static const struct ide_dma_ops scc_dma_ops = {
811 .dma_sff_read_status = scc_dma_sff_read_status, 809 .dma_sff_read_status = scc_dma_sff_read_status,
812}; 810};
813 811
814static const struct ide_port_info scc_chipset __devinitconst = { 812static const struct ide_port_info scc_chipset = {
815 .name = "sccIDE", 813 .name = "sccIDE",
816 .init_iops = init_iops_scc, 814 .init_iops = init_iops_scc,
817 .init_dma = scc_init_dma, 815 .init_dma = scc_init_dma,
@@ -834,7 +832,7 @@ static const struct ide_port_info scc_chipset __devinitconst = {
834 * We then use the IDE PCI generic helper to do most of the work. 832 * We then use the IDE PCI generic helper to do most of the work.
835 */ 833 */
836 834
837static int __devinit scc_init_one(struct pci_dev *dev, const struct pci_device_id *id) 835static int scc_init_one(struct pci_dev *dev, const struct pci_device_id *id)
838{ 836{
839 return init_setup_scc(dev, &scc_chipset); 837 return init_setup_scc(dev, &scc_chipset);
840} 838}
@@ -846,7 +844,7 @@ static int __devinit scc_init_one(struct pci_dev *dev, const struct pci_device_i
846 * Called by the PCI code when it removes an SCC PATA controller. 844 * Called by the PCI code when it removes an SCC PATA controller.
847 */ 845 */
848 846
849static void __devexit scc_remove(struct pci_dev *dev) 847static void scc_remove(struct pci_dev *dev)
850{ 848{
851 struct scc_ports *ports = pci_get_drvdata(dev); 849 struct scc_ports *ports = pci_get_drvdata(dev);
852 struct ide_host *host = ports->host; 850 struct ide_host *host = ports->host;
@@ -869,7 +867,7 @@ static struct pci_driver scc_pci_driver = {
869 .name = "SCC IDE", 867 .name = "SCC IDE",
870 .id_table = scc_pci_tbl, 868 .id_table = scc_pci_tbl,
871 .probe = scc_init_one, 869 .probe = scc_init_one,
872 .remove = __devexit_p(scc_remove), 870 .remove = scc_remove,
873}; 871};
874 872
875static int __init scc_ide_init(void) 873static int __init scc_ide_init(void)