From 0f9d58f58bae825a5435f299f6dc56b5061ce26e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 11 Sep 2018 11:24:25 +0200 Subject: 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(-) (limited to 'rtemsbsd') 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); -- cgit v1.2.3