Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105683
b: refs/heads/master
c: 8c2eece
h: refs/heads/master
i:
  105681: 6755848
  105679: d18177c
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 24, 2008
1 parent e83916b commit c3dbecf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a742d6cf0b37b1a96a1549b1fda0d6b19e0185c2
refs/heads/master: 8c2eece50a368c7986bae0b3e52739558dd71b51
18 changes: 11 additions & 7 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,16 @@ int ide_setup_pci_device(struct pci_dev *dev, const struct ide_port_info *d)
if (ret < 0)
goto out;

ide_pci_setup_ports(dev, d, 0, &hw[0], &hws[0]);

ret = do_ide_setup_pci_device(dev, d, 1);
if (ret < 0)
goto out;

if (ret >= 0) {
/* FIXME: silent failure can happen */
ide_pci_setup_ports(dev, d, ret, &hw[0], &hws[0]);
/* fixup IRQ */
hw[1].irq = hw[0].irq = ret;

ret = ide_host_add(d, hws, NULL);
}
ret = ide_host_add(d, hws, NULL);
out:
return ret;
}
Expand All @@ -559,6 +561,8 @@ int ide_setup_pci_devices(struct pci_dev *dev1, struct pci_dev *dev2,
if (ret < 0)
goto out;

ide_pci_setup_ports(pdev[i], d, 0, &hw[i*2], &hws[i*2]);

ret = do_ide_setup_pci_device(pdev[i], d, !i);

/*
Expand All @@ -568,8 +572,8 @@ int ide_setup_pci_devices(struct pci_dev *dev1, struct pci_dev *dev2,
if (ret < 0)
goto out;

/* FIXME: silent failure can happen */
ide_pci_setup_ports(pdev[i], d, ret, &hw[i*2], &hws[i*2]);
/* fixup IRQ */
hw[i*2 + 1].irq = hw[i*2].irq = ret;
}

ret = ide_host_add(d, hws, NULL);
Expand Down

0 comments on commit c3dbecf

Please sign in to comment.