diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-09 23:53:47 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-09 23:53:47 +0000 |
commit | 023e6598a88752ddf1077c3173c4e0cf4749b480 (patch) | |
tree | faf5ab76271ee105b6233905a0931c41514409fa /sys/powerpc/aim/nexus.c | |
parent | 10425d51e74a8a1537764e6134c71bfbfc2d66b5 (diff) | |
download | FreeBSD-src-023e6598a88752ddf1077c3173c4e0cf4749b480.zip FreeBSD-src-023e6598a88752ddf1077c3173c4e0cf4749b480.tar.gz |
Make AIM early-boot code function correctly without Open Firmware.
Diffstat (limited to 'sys/powerpc/aim/nexus.c')
-rw-r--r-- | sys/powerpc/aim/nexus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/aim/nexus.c b/sys/powerpc/aim/nexus.c index b17de11..203ae81 100644 --- a/sys/powerpc/aim/nexus.c +++ b/sys/powerpc/aim/nexus.c @@ -213,9 +213,6 @@ nexus_attach(device_t dev) struct nexus_softc *sc; u_long start, end; - if ((root = OF_peer(0)) == -1) - panic("nexus_probe: OF_peer failed."); - sc = device_get_softc(dev); start = 0; @@ -229,6 +226,9 @@ nexus_attach(device_t dev) rman_manage_region(&sc->sc_rman, start, end)) panic("nexus_probe IRQ rman"); + if ((root = OF_peer(0)) == 0) + return (bus_generic_attach(dev)); + /* * Now walk the OFW tree to locate top-level devices */ |