* shared/pci/pcibios.c: let pci_find_device() return

-1 on failure, not just non-zero status. I found that
	some driver(s) [e.g. dec21140] explicitely check for -1.
This commit is contained in:
Till Straumann
2006-07-13 00:41:03 +00:00
parent a031fc2272
commit b365d4d88d
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2006-07-12 Till Straumann <strauman@slac.stanford.edu>
* shared/pci/pcibios.c: let pci_find_device() return
-1 on failure, not just non-zero status. I found that
some driver(s) [e.g. dec21140] explicitely check for -1.
2005-11-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* shared/irq/idt.c: Reflect API changes.

View File

@@ -183,7 +183,7 @@ pci_find_device(
*pbus = PCIB_DEVSIG_BUS(sig);
*pdev = PCIB_DEVSIG_DEV(sig);
*pfun = PCIB_DEVSIG_FUNC(sig);
return status;
return status ? -1 : 0;
}
/*