diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2014-05-11 18:22:05 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2014-05-11 18:22:05 +0000 |
commit | e2fc1af45ed774470562952b97e52e9f57651bbd (patch) | |
tree | 23fe36eea9c5c005880215815cf6588536da702a /sys | |
parent | c8f780e3d618efb8f42814b3a20e344f4e771371 (diff) | |
download | src-e2fc1af45ed774470562952b97e52e9f57651bbd.tar.gz src-e2fc1af45ed774470562952b97e52e9f57651bbd.zip |
OF_peer() in IEEE 1275 returns 0 if no peer exists, not -1.
Notes
Notes:
svn path=/head/; revision=265888
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ofw/ofwbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofwbus.c b/sys/dev/ofw/ofwbus.c index d06917d22fa6..aa7566b52977 100644 --- a/sys/dev/ofw/ofwbus.c +++ b/sys/dev/ofw/ofwbus.c @@ -187,7 +187,7 @@ ofwbus_identify(driver_t *driver, device_t parent) { /* Check if Open Firmware has been instantiated */ - if (OF_peer(0) == -1) + if (OF_peer(0) == 0) return; if (device_find_child(parent, "ofwbus", -1) == NULL) |