MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_mmcsd_blk_remove

Function rt_mmcsd_blk_remove

components/drivers/sdio/dev_block.c:408–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card)
409{
410 struct mmcsd_blk_device *blk_dev = card->blk_dev;
411
412 if (!blk_dev)
413 {
414 return;
415 }
416
417 if (!rt_hw_blk_disk_unregister(&blk_dev->parent))
418 {
419 card->blk_dev = RT_NULL;
420 rt_free(blk_dev);
421 }
422}

Callers 3

init_sdFunction · 0.85
init_mmcFunction · 0.85
mmcsd_detectFunction · 0.85

Calls 2

rt_freeFunction · 0.85

Tested by

no test coverage detected