Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105682
b: refs/heads/master
c: a742d6c
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 24, 2008
1 parent 6755848 commit e83916b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: a95925a309cd9a2e7f5a5713fd70e0dadb09890c
refs/heads/master: a742d6cf0b37b1a96a1549b1fda0d6b19e0185c2
14 changes: 9 additions & 5 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,6 @@ static int do_ide_setup_pci_device(struct pci_dev *dev,
{
int pciirq, ret;

ret = ide_setup_pci_controller(dev, d, noisy);
if (ret < 0)
goto out;

/*
* Can we trust the reported IRQ?
*/
Expand Down Expand Up @@ -534,6 +530,10 @@ int ide_setup_pci_device(struct pci_dev *dev, const struct ide_port_info *d)
hw_regs_t hw[4], *hws[] = { NULL, NULL, NULL, NULL };
int ret;

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

ret = do_ide_setup_pci_device(dev, d, 1);

if (ret >= 0) {
Expand All @@ -542,7 +542,7 @@ int ide_setup_pci_device(struct pci_dev *dev, const struct ide_port_info *d)

ret = ide_host_add(d, hws, NULL);
}

out:
return ret;
}
EXPORT_SYMBOL_GPL(ide_setup_pci_device);
Expand All @@ -555,6 +555,10 @@ int ide_setup_pci_devices(struct pci_dev *dev1, struct pci_dev *dev2,
hw_regs_t hw[4], *hws[] = { NULL, NULL, NULL, NULL };

for (i = 0; i < 2; i++) {
ret = ide_setup_pci_controller(pdev[i], d, !i);
if (ret < 0)
goto out;

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

/*
Expand Down

0 comments on commit e83916b

Please sign in to comment.