static int
xenpv_attach(device_t dev)
{
- device_t child;
-
/*
* Let our child drivers identify any child devices that they
* can find. Once that is done attach any devices that we
bus_generic_probe(dev);
bus_generic_attach(dev);
+#ifdef DEV_ISA
if (!devclass_get_device(devclass_find("isa"), 0)) {
- child = BUS_ADD_CHILD(dev, 0, "isa", 0);
+ device_t child = BUS_ADD_CHILD(dev, 0, "isa", 0);
+
if (child == NULL)
panic("Failed to attach ISA bus.");
device_probe_and_attach(child);
}
+#endif
return (0);
}