Author: nwhitehorn
Date: Sun May 11 18:22:05 2014
New Revision: 265888
URL: http://svnweb.freebsd.org/changeset/base/265888

Log:
  OF_peer() in IEEE 1275 returns 0 if no peer exists, not -1.

Modified:
  head/sys/dev/ofw/ofwbus.c

Modified: head/sys/dev/ofw/ofwbus.c
==============================================================================
--- head/sys/dev/ofw/ofwbus.c   Sun May 11 18:07:07 2014        (r265887)
+++ head/sys/dev/ofw/ofwbus.c   Sun May 11 18:22:05 2014        (r265888)
@@ -187,7 +187,7 @@ ofwbus_identify(driver_t *driver, device
 {
 
        /* 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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to