svn commit: r265888 - head/sys/dev/ofw
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Sun May 11 18:22:06 UTC 2014
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)
More information about the svn-src-head
mailing list