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

Function pic_mbox_remove

components/drivers/mailbox/mailbox-pic.c:265–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static rt_err_t pic_mbox_remove(struct rt_platform_device *pdev)
266{
267 struct pic_mbox *pic_mbox = pdev->parent.user_data;
268
269 rt_pic_detach_irq(pic_mbox->irq, pic_mbox);
270
271 rt_mbox_controller_unregister(&pic_mbox->parent);
272
273 pic_mbox_free_resource(pic_mbox);
274
275 return RT_EOK;
276}
277
278static const struct rt_ofw_node_id pic_mbox_ofw_ids[] =
279{

Callers

nothing calls this directly

Calls 3

rt_pic_detach_irqFunction · 0.85
pic_mbox_free_resourceFunction · 0.85

Tested by

no test coverage detected