svn commit: r292157 - head/sys/dev/ofw

Michal Meloun mmel at FreeBSD.org
Sun Dec 13 08:23:47 UTC 2015


Author: mmel
Date: Sun Dec 13 08:23:45 2015
New Revision: 292157
URL: https://svnweb.freebsd.org/changeset/base/292157

Log:
  OFW_IICBUS: Register ofw_iicbus node.
  The iicbus can be referenced from other nodes in DT.
  
  Approved by:	kib (mentor)

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

Modified: head/sys/dev/ofw/ofw_iicbus.c
==============================================================================
--- head/sys/dev/ofw/ofw_iicbus.c	Sun Dec 13 08:17:49 2015	(r292156)
+++ head/sys/dev/ofw/ofw_iicbus.c	Sun Dec 13 08:23:45 2015	(r292157)
@@ -190,6 +190,8 @@ ofw_iicbus_attach(device_t dev)
 		device_set_ivars(childdev, dinfo);
 	}
 
+	/* Register bus */
+	OF_device_register_xref(OF_xref_from_node(node), dev);
 	return (bus_generic_attach(dev));
 }
 


More information about the svn-src-head mailing list