Changeset 0f9d58f in rtems-libbsd


Ignore:
Timestamp:
Sep 11, 2018, 9:24:25 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
3990b45
Parents:
f56067e
git-author:
Sebastian Huber <sebastian.huber@…> (09/11/18 09:24:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/11/18 09:36:28)
Message:

dw_mmc: Avoid conflicting device ivars

Do not overwrite the device ivars used by the simplebus. Use
unspecified unit number for child device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/sys/dev/dw_mmc/dw_mmc.c

    rf56067e r0f9d58f  
    393393        sc->host.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_HSPEED;
    394394
    395         device_add_child(dev, "mmc", 0);
    396         device_set_ivars(dev, &sc->host);
     395        device_add_child(dev, "mmc", -1);
    397396        err = bus_generic_attach(dev);
    398397
Note: See TracChangeset for help on using the changeset viewer.