DM: cleanup resource for uart.

Add deinit function for uart.
Another work is add resource cleanup functions which is called
by other components when they are using uart.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Yin Fengwei
2018-04-13 10:31:37 +08:00
committed by Jack Ren
parent c8585a22e3
commit 1a2a07476b
3 changed files with 42 additions and 0 deletions

View File

@@ -44,4 +44,5 @@ void uart_legacy_dealloc(int which);
uint8_t uart_read(struct uart_vdev *uart, int offset);
void uart_write(struct uart_vdev *uart, int offset, uint8_t value);
int uart_set_backend(struct uart_vdev *uart, const char *opt);
void uart_release_backend(struct uart_vdev *uart, const char *opts);
#endif