aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/efm32-uart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c
index ce1ebbb0fe0d..98adaa1c054f 100644
--- a/drivers/tty/serial/efm32-uart.c
+++ b/drivers/tty/serial/efm32-uart.c
@@ -751,7 +751,8 @@ static int efm32_uart_probe(struct platform_device *pdev)
751 751
752 if (pdata) 752 if (pdata)
753 efm_port->pdata = *pdata; 753 efm_port->pdata = *pdata;
754 } 754 } else if (ret < 0)
755 goto err_probe_dt;
755 756
756 line = efm_port->port.line; 757 line = efm_port->port.line;
757 758
@@ -764,6 +765,7 @@ static int efm32_uart_probe(struct platform_device *pdev)
764 765
765 if (line >= 0 && line < ARRAY_SIZE(efm32_uart_ports)) 766 if (line >= 0 && line < ARRAY_SIZE(efm32_uart_ports))
766 efm32_uart_ports[line] = NULL; 767 efm32_uart_ports[line] = NULL;
768err_probe_dt:
767err_get_rxirq: 769err_get_rxirq:
768err_too_small: 770err_too_small:
769err_get_base: 771err_get_base: