From 2a4fc683467422e34aac9c1ea6e1fc373cbbfca4 Mon Sep 17 00:00:00 2001 From: Michal Meloun Date: Sun, 13 Dec 2015 08:23:45 +0000 Subject: [PATCH] OFW_IICBUS: Register ofw_iicbus node. The iicbus can be referenced from other nodes in DT. Approved by: kib (mentor) --- sys/dev/ofw/ofw_iicbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/ofw/ofw_iicbus.c b/sys/dev/ofw/ofw_iicbus.c index e27cc09c236..c0fa054e5e4 100644 --- a/sys/dev/ofw/ofw_iicbus.c +++ b/sys/dev/ofw/ofw_iicbus.c @@ -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)); }