summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-11 11:24:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-11 11:36:28 +0200
commit0f9d58f58bae825a5435f299f6dc56b5061ce26e (patch)
treebd63907130b1744c21b239b78b055c2da17f58d4 /rtemsbsd
parentvprintf: Avoid printf() to avoid FPU usage (diff)
downloadrtems-libbsd-0f9d58f58bae825a5435f299f6dc56b5061ce26e.tar.bz2
dw_mmc: Avoid conflicting device ivars
Do not overwrite the device ivars used by the simplebus. Use unspecified unit number for child device.
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/sys/dev/dw_mmc/dw_mmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c b/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c
index 951adeaf..3a804a60 100644
--- a/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c
+++ b/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c
@@ -392,8 +392,7 @@ dw_mmc_attach(device_t dev)
/* FIXME: MMC_CAP_8_BIT_DATA for eSDIO? */
sc->host.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_HSPEED;
- device_add_child(dev, "mmc", 0);
- device_set_ivars(dev, &sc->host);
+ device_add_child(dev, "mmc", -1);
err = bus_generic_attach(dev);
return (err);