diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2018-06-30 16:22:56 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2018-06-30 16:22:56 +0000 |
| commit | 7f828f6d436b53ef3bbbc4e2ccc746c0919cb571 (patch) | |
| tree | 4a0bc7745ac1164a4ffe00041e052ee7a95566f7 /sys/dev/fdt/syscon.c | |
| parent | 0d05a8b86d128ab1e688689a93b76f24b40310ab (diff) | |
Allow nodes to attach child devices using the same sorting rules as used
by the simplebus driver.
Diffstat (limited to 'sys/dev/fdt/syscon.c')
| -rw-r--r-- | sys/dev/fdt/syscon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/syscon.c b/sys/dev/fdt/syscon.c index e902cc87237..cbfaaeb53c7 100644 --- a/sys/dev/fdt/syscon.c +++ b/sys/dev/fdt/syscon.c @@ -1,4 +1,4 @@ -/* $NetBSD: syscon.c,v 1.1 2018/06/30 12:35:18 jmcneill Exp $ */ +/* $NetBSD: syscon.c,v 1.2 2018/06/30 16:22:56 jmcneill Exp $ */ /*- * Copyright (c) 2018 Jared McNeill <jmcneill@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: syscon.c,v 1.1 2018/06/30 12:35:18 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscon.c,v 1.2 2018/06/30 16:22:56 jmcneill Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -135,4 +135,6 @@ syscon_attach(device_t parent, device_t self, void *aux) aprint_normal(": System Controller Registers\n"); fdtbus_register_syscon(self, phandle, &sc->sc_syscon); + + fdt_add_bus(self, phandle, faa); } |
