diff options
author | Landon J. Fuller <landonf@FreeBSD.org> | 2018-01-19 21:36:28 +0000 |
---|---|---|
committer | Landon J. Fuller <landonf@FreeBSD.org> | 2018-01-19 21:36:28 +0000 |
commit | 5ad00fa2cfac750f7b922a3b1af9fe1e02f2b7ff (patch) | |
tree | 52f21f3d9eea8942ed21701fa12a58d4f50ddbae /sys/dev/bhnd | |
parent | ca84c67cd01e6ac665ca0118575313b3b5b593ed (diff) | |
download | src-5ad00fa2cfac750f7b922a3b1af9fe1e02f2b7ff.tar.gz src-5ad00fa2cfac750f7b922a3b1af9fe1e02f2b7ff.zip |
bhnd_chipc(4): Fix the assignment of non-wildcard child unit numbers
introduced in r326102 and r326109; all chipc children should be added with
a wildcard unit (-1).
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=328174
Diffstat (limited to 'sys/dev/bhnd')
-rw-r--r-- | sys/dev/bhnd/cores/chipc/chipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bhnd/cores/chipc/chipc.c b/sys/dev/bhnd/cores/chipc/chipc.c index 52efcbf3a34e..41d73dda390e 100644 --- a/sys/dev/bhnd/cores/chipc/chipc.c +++ b/sys/dev/bhnd/cores/chipc/chipc.c @@ -295,13 +295,13 @@ chipc_add_children(struct chipc_softc *sc) * attached directly to the bhnd(4) bus -- not chipc. */ if (sc->caps.pmu && !sc->caps.aob) { - child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pmu", 0); + child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pmu", -1); if (child == NULL) { device_printf(sc->dev, "failed to add pmu\n"); return (ENXIO); } } else if (sc->caps.pwr_ctrl) { - child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pwrctl", 0); + child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pwrctl", -1); if (child == NULL) { device_printf(sc->dev, "failed to add pwrctl\n"); return (ENXIO); @@ -309,7 +309,7 @@ chipc_add_children(struct chipc_softc *sc) } /* GPIO */ - child = BUS_ADD_CHILD(sc->dev, 0, "gpio", 0); + child = BUS_ADD_CHILD(sc->dev, 0, "gpio", -1); if (child == NULL) { device_printf(sc->dev, "failed to add gpio\n"); return (ENXIO); |