mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 05:09:34 +08:00
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:
parent
f56067e26c
commit
0f9d58f58b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user