/* 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 -1;
	if (--uart_init_flag == 0) {
		ret = adi_uart_Close(h_uart_device);
		if(ret < 0)
			return ret;
	}
	return 0;
}