summaryrefslogtreecommitdiff
path: root/sys/dev/mca
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>1999-12-03 08:41:24 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>1999-12-03 08:41:24 +0000
commitfe0d408987b42b531420ff2de76d534dbe7ecee7 (patch)
tree6196b778a0e888c9c44157e090059018b00a3080 /sys/dev/mca
parentb06e7af6ddadc3933a558d3e3ab7c76125611445 (diff)
Notes
Diffstat (limited to 'sys/dev/mca')
-rw-r--r--sys/dev/mca/mca_bus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c
index f105ea17c6fe..a2dd456295cb 100644
--- a/sys/dev/mca/mca_bus.c
+++ b/sys/dev/mca/mca_bus.c
@@ -245,6 +245,7 @@ mca_add_iospace (dev, iobase, iosize)
static int
mca_probe (device_t dev)
{
+ device_t child;
struct mca_device * m_dev = NULL;
int devices_found = 0;
u_int8_t slot;
@@ -307,7 +308,8 @@ mca_probe (device_t dev)
resource_list_init(&(m_dev->rl));
- device_add_child(dev, NULL, -1, m_dev);
+ child = device_add_child(dev, NULL, -1);
+ device_set_ivars(child, m_dev);
m_dev = NULL;
}