/* This function will detach a portal device from resource management */
rt_err_t rt_portal_detach(struct rt_portal_device *portal)
/* This function will detach a portal device from resource management */
rt_err_t rt_portal_detach(struct rt_portal_device *portal)
{
    return rt_device_unregister(&portal->parent);
}