Changeset 0f9d58f in rtems-libbsd


Ignore:
Timestamp:
Sep 11, 2018, 9:24:25 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
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.