dw_mmc: Avoid conflicting device ivars

Do not overwrite the device ivars used by the simplebus.  Use
unspecified unit number for child device.
This commit is contained in:
Sebastian Huber 2018-09-11 11:24:25 +02:00
parent f56067e26c
commit 0f9d58f58b

View File

@ -392,8 +392,7 @@ dw_mmc_attach(device_t dev)
/* FIXME: MMC_CAP_8_BIT_DATA for eSDIO? */ /* FIXME: MMC_CAP_8_BIT_DATA for eSDIO? */
sc->host.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_HSPEED; sc->host.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_HSPEED;
device_add_child(dev, "mmc", 0); device_add_child(dev, "mmc", -1);
device_set_ivars(dev, &sc->host);
err = bus_generic_attach(dev); err = bus_generic_attach(dev);
return (err); return (err);