aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sdio/sdiob.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sdio/sdiob.c')
-rw-r--r--sys/dev/sdio/sdiob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdio/sdiob.c b/sys/dev/sdio/sdiob.c
index 60389c419e35..4ec2058fa2e4 100644
--- a/sys/dev/sdio/sdiob.c
+++ b/sys/dev/sdio/sdiob.c
@@ -558,7 +558,7 @@ sdiob_attach(device_t dev)
* Do this before any child gets a chance to attach.
*/
for (i = 0; i < sc->cardinfo.num_funcs; i++) {
- sc->child[i] = device_add_child(dev, NULL, -1);
+ sc->child[i] = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
if (sc->child[i] == NULL) {
device_printf(dev, "%s: failed to add child\n", __func__);
return (ENXIO);
@@ -923,7 +923,7 @@ sdio_newbus_sim_add(struct sdiob_softc *sc)
__func__, sc, sc->periph, sc->periph->sim));
if (sc->dev == NULL)
- sc->dev = BUS_ADD_CHILD(pdev, 0, SDIOB_NAME_S, -1);
+ sc->dev = BUS_ADD_CHILD(pdev, 0, SDIOB_NAME_S, DEVICE_UNIT_ANY);
if (sc->dev == NULL)
return (ENXIO);
device_set_softc(sc->dev, sc);