diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-11 11:24:25 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-11 11:36:28 +0200 |
commit | 0f9d58f58bae825a5435f299f6dc56b5061ce26e (patch) | |
tree | bd63907130b1744c21b239b78b055c2da17f58d4 /rtemsbsd/sys | |
parent | vprintf: Avoid printf() to avoid FPU usage (diff) | |
download | rtems-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/sys')
-rw-r--r-- | rtemsbsd/sys/dev/dw_mmc/dw_mmc.c | 3 |
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); |