Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 18:22:05 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265888 - head/sys/dev/ofw
Message-ID:  <201405111822.s4BIM5Sn015145@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405111822.s4BIM5Sn015145>