diff options
Diffstat (limited to 'sys/dev/sram/mmio_sram.c')
-rw-r--r-- | sys/dev/sram/mmio_sram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sram/mmio_sram.c b/sys/dev/sram/mmio_sram.c index c1d024459650..4409386d9ad1 100644 --- a/sys/dev/sram/mmio_sram.c +++ b/sys/dev/sram/mmio_sram.c @@ -94,7 +94,7 @@ mmio_sram_attach(device_t dev) /* * Allow devices to identify. */ - bus_generic_probe(dev); + bus_identify_children(dev); /* * Now walk the OFW tree and attach top-level devices. @@ -102,7 +102,8 @@ mmio_sram_attach(device_t dev) for (node = OF_child(node); node > 0; node = OF_peer(node)) simplebus_add_device(dev, node, 0, NULL, -1, NULL); - return (bus_generic_attach(dev)); + bus_attach_children(dev); + return (0); } static int |