aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci')
-rw-r--r--drivers/ide/pci/sgiioc4.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c
index b188efcd3551..9e0be7d54980 100644
--- a/drivers/ide/pci/sgiioc4.c
+++ b/drivers/ide/pci/sgiioc4.c
@@ -636,14 +636,13 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
636 /* Initialize the IO registers */ 636 /* Initialize the IO registers */
637 memset(&hw, 0, sizeof(hw)); 637 memset(&hw, 0, sizeof(hw));
638 sgiioc4_init_hwif_ports(&hw, cmd_base, ctl, irqport); 638 sgiioc4_init_hwif_ports(&hw, cmd_base, ctl, irqport);
639 memcpy(hwif->io_ports, hw.io_ports, sizeof(hwif->io_ports)); 639 hw.irq = dev->irq;
640 hwif->noprobe = 0; 640 hw.chipset = ide_pci;
641 hw.dev = &dev->dev;
642 ide_init_port_hw(hwif, &hw);
641 643
642 hwif->irq = dev->irq;
643 hwif->chipset = ide_pci;
644 hwif->pci_dev = dev; 644 hwif->pci_dev = dev;
645 hwif->channel = 0; /* Single Channel chip */ 645 hwif->channel = 0; /* Single Channel chip */
646 hwif->gendev.parent = &dev->dev;/* setup proper ancestral information */
647 646
648 /* The IOC4 uses MMIO rather than Port IO. */ 647 /* The IOC4 uses MMIO rather than Port IO. */
649 default_hwif_mmiops(hwif); 648 default_hwif_mmiops(hwif);