[rtems-libbsd commit] dw_mmc: Avoid conflicting device ivars
Sebastian Huber
sebh at rtems.org
Tue Sep 11 09:37:03 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 0f9d58f58bae825a5435f299f6dc56b5061ce26e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0f9d58f58bae825a5435f299f6dc56b5061ce26e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Sep 11 11:24:25 2018 +0200
dw_mmc: Avoid conflicting device ivars
Do not overwrite the device ivars used by the simplebus. Use
unspecified unit number for child device.
---
rtemsbsd/sys/dev/dw_mmc/dw_mmc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c b/rtemsbsd/sys/dev/dw_mmc/dw_mmc.c
index 951adea..3a804a6 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);
More information about the vc
mailing list