aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/pdc202xx_new.c')
-rw-r--r--drivers/ide/pci/pdc202xx_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 070df8ab3b21..71a420feb981 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -524,7 +524,7 @@ static int __devinit pdc202new_init_one(struct pci_dev *dev, const struct pci_de
524 dev2 = pdc20270_get_dev2(dev); 524 dev2 = pdc20270_get_dev2(dev);
525 525
526 if (dev2) { 526 if (dev2) {
527 int ret = ide_setup_pci_devices(dev, dev2, d); 527 int ret = ide_pci_init_two(dev, dev2, d, NULL);
528 if (ret < 0) 528 if (ret < 0)
529 pci_dev_put(dev2); 529 pci_dev_put(dev2);
530 return ret; 530 return ret;
@@ -540,7 +540,7 @@ static int __devinit pdc202new_init_one(struct pci_dev *dev, const struct pci_de
540 return -ENODEV; 540 return -ENODEV;
541 } 541 }
542 542
543 return ide_setup_pci_device(dev, d); 543 return ide_pci_init_one(dev, d, NULL);
544} 544}
545 545
546static const struct pci_device_id pdc202new_pci_tbl[] = { 546static const struct pci_device_id pdc202new_pci_tbl[] = {