aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/scc_pata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/scc_pata.c')
-rw-r--r--drivers/ide/pci/scc_pata.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c
index d5e2ba6bacd6..94a7ab864236 100644
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -588,7 +588,7 @@ static int scc_ide_setup_pci_device(struct pci_dev *dev,
588 struct scc_ports *ports = pci_get_drvdata(dev); 588 struct scc_ports *ports = pci_get_drvdata(dev);
589 struct ide_host *host; 589 struct ide_host *host;
590 hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; 590 hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
591 int i; 591 int i, rc;
592 592
593 memset(&hw, 0, sizeof(hw)); 593 memset(&hw, 0, sizeof(hw));
594 for (i = 0; i <= 8; i++) 594 for (i = 0; i <= 8; i++)
@@ -597,11 +597,9 @@ static int scc_ide_setup_pci_device(struct pci_dev *dev,
597 hw.dev = &dev->dev; 597 hw.dev = &dev->dev;
598 hw.chipset = ide_pci; 598 hw.chipset = ide_pci;
599 599
600 host = ide_host_alloc(d, hws); 600 rc = ide_host_add(d, hws, &host);
601 if (host == NULL) 601 if (rc)
602 return -ENOMEM; 602 return rc;
603
604 ide_host_register(host, d, hws);
605 603
606 ports->host = host; 604 ports->host = host;
607 605