mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 21:39:57 +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? */
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user