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