Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147773780
D22192.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
D22192.id.diff
View Options
Index: head/sys/arm/allwinner/aw_mmc.c
===================================================================
--- head/sys/arm/allwinner/aw_mmc.c
+++ head/sys/arm/allwinner/aw_mmc.c
@@ -526,8 +526,8 @@
}
mtx_init(&sc->sim_mtx, "awmmcsim", NULL, MTX_DEF);
- sc->sim = cam_sim_alloc(aw_mmc_cam_action, aw_mmc_cam_poll,
- "aw_mmc_sim", sc, device_get_unit(dev),
+ sc->sim = cam_sim_alloc_dev(aw_mmc_cam_action, aw_mmc_cam_poll,
+ "aw_mmc_sim", sc, dev,
&sc->sim_mtx, 1, 1, sc->devq);
if (sc->sim == NULL) {
@@ -1514,6 +1514,7 @@
/* Bus interface */
DEVMETHOD(bus_read_ivar, aw_mmc_read_ivar),
DEVMETHOD(bus_write_ivar, aw_mmc_write_ivar),
+ DEVMETHOD(bus_add_child, bus_generic_add_child),
/* MMC bridge interface */
DEVMETHOD(mmcbr_update_ios, aw_mmc_update_ios),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 1:39 PM (16 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29614901
Default Alt Text
D22192.id.diff (802 B)
Attached To
Mode
D22192: Use the new cam_sim_alloc_dev function to properly initialize SIM
Attached
Detach File
Event Timeline
Log In to Comment