| 263 | } |
| 264 | |
| 265 | static 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 | |
| 278 | static const struct rt_ofw_node_id pic_mbox_ofw_ids[] = |
| 279 | { |
nothing calls this directly
no test coverage detected