diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2006-07-13 00:41:03 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2006-07-13 00:41:03 +0000 |
commit | b365d4d88d1ec3884294f453b23bba839176cbb5 (patch) | |
tree | e4456fd12767560c850b7beeb3d803ff16111100 /c/src/lib/libbsp/i386/shared/pci/pcibios.c | |
parent | * rtems/old-exceptions/cpu.h, rtems/powerpc/registers.h: (diff) | |
download | rtems-b365d4d88d1ec3884294f453b23bba839176cbb5.tar.bz2 |
* 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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/pci/pcibios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c index c90ca09d53..6c3517667b 100644 --- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c +++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.c @@ -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; } /* |