/* Close UART communication and free memory from UART descriptor. */
int32_t usr_uart_remove(struct uart_desc *desc)
/* Close UART communication and free memory from UART descriptor. */
int32_t usr_uart_remove(struct uart_desc *desc)
{
	int32_t ret;
	if(!desc)
		return CN415_FAILURE;
	ret = adi_uart_Close(h_uart_device);
	if(ret != ADI_UART_SUCCESS)
		return ret;
	free(desc);
	return CN415_SUCCESS;
}