diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-05-24 18:05:42 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-05-24 18:05:42 -0600 |
commit | 08d7260e415b19b46c7485106d593db7fc5dba34 (patch) | |
tree | b46e84d0f8b183587dc9392a54b0078dc0f9a461 /drivers | |
parent | 8b4825fd78ce244f16911131e3f60b2e3c6733c7 (diff) |
CR TLSbo90393: mxcuart_shutdown: remove dead code
Description: mxcuart_shutdown has a section of code that has no effect
and is based on obsolete ideas. The "if (umxc->port.cons != NULL)"
clause has no effect since there is no clock shutting off code after
it. There will never be any clock shutting off code in this function
since that is properly taken care of in mxcuart_pm.
http://www.bitshrine.org/gpp/linux-2.6.19.2-mx-mxcuart_shutdown_cleanup.patch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/mxc_uart.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/serial/mxc_uart.c b/drivers/serial/mxc_uart.c index 151c131e9079..8147c8f8acf6 100644 --- a/drivers/serial/mxc_uart.c +++ b/drivers/serial/mxc_uart.c @@ -1218,15 +1218,6 @@ static void mxcuart_shutdown(struct uart_port *port) if (umxc->dma_enabled == 1) { mxcuart_freedma(dma_list + umxc->port.line, umxc); } - /* - * Do not disable clocks if UART is used as a console - */ - if (umxc->port.cons != NULL) { - if ((umxc->port.cons->flags & CON_ENABLED) && - (umxc->port.line == console_index)) { - return; - } - } } /*! |