aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/uart-db8500.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/uart-db8500.c')
-rw-r--r--arch/arm/mach-ux500/uart-db8500.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/arm/mach-ux500/uart-db8500.c b/arch/arm/mach-ux500/uart-db8500.c
index 0fb6679c953..b3da7ad5287 100644
--- a/arch/arm/mach-ux500/uart-db8500.c
+++ b/arch/arm/mach-ux500/uart-db8500.c
@@ -78,14 +78,7 @@ static void save_uart(void)
int i;
for (i = 0; i < UX500_NR_UARTS; i++) {
- /*
- * No need to store the UART register values
- * for the port which is already disabled the clock
- * other than the console port.
- */
- context_uart[i].cr =
- readl(context_uart[i].base + UART011_CR);
- if ((!context_uart[i].cr) && (i != CONFIG_UX500_DEBUG_UART))
+ if (i != CONFIG_UX500_DEBUG_UART)
continue;
clk_enable(context_uart[i].uart_clk);
@@ -147,12 +140,7 @@ static void restore_uart(void)
int i, cnt;
for (i = 0; i < UX500_NR_UARTS; i++) {
- /*
- * No need to restore the UART register values
- * for the port which is already disabled the clock
- * other than the console port.
- */
- if ((!context_uart[i].cr) && (i != CONFIG_UX500_DEBUG_UART))
+ if (i != CONFIG_UX500_DEBUG_UART)
continue;
clk_enable(context_uart[i].uart_clk);