summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-03-15 22:53:39 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-03-15 22:53:39 +0000
commit6a20b9d5e1b5cb14c03717b65c2e6acd19edb28a (patch)
tree766b9307623f628b6d7593bdc335d1907b8da19e /sys/sparc64/pci
parent9a147d4aa9b88d194fb4b58c42c7ec7c140b44a8 (diff)
downloadFreeBSD-src-6a20b9d5e1b5cb14c03717b65c2e6acd19edb28a.zip
FreeBSD-src-6a20b9d5e1b5cb14c03717b65c2e6acd19edb28a.tar.gz
Make ofw_bus_get_node() consistently return -1 when there is no associated
OF node, instead of a random mixture of 0 and -1. Update all checks for 0 to check for -1 instead. MFC after: 4 weeks
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r--sys/sparc64/pci/ofw_pcibus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c
index 9dd0e27..92b9f76 100644
--- a/sys/sparc64/pci/ofw_pcibus.c
+++ b/sys/sparc64/pci/ofw_pcibus.c
@@ -111,7 +111,7 @@ static int
ofw_pcibus_probe(device_t dev)
{
- if (ofw_bus_get_node(dev) == 0)
+ if (ofw_bus_get_node(dev) == -1)
return (ENXIO);
device_set_desc(dev, "OFW PCI bus");
OpenPOWER on IntegriCloud