Skip to content

Commit 3fc1eb5

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
serial/efm32-uart: don't slur over failure in probe_dt
Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 11f1ad3 commit 3fc1eb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/tty/serial/efm32-uart.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,8 @@ static int efm32_uart_probe(struct platform_device *pdev)
751751

752752
if (pdata)
753753
efm_port->pdata = *pdata;
754-
}
754+
} else if (ret < 0)
755+
goto err_probe_dt;
755756

756757
line = efm_port->port.line;
757758

@@ -764,6 +765,7 @@ static int efm32_uart_probe(struct platform_device *pdev)
764765

765766
if (line >= 0 && line < ARRAY_SIZE(efm32_uart_ports))
766767
efm32_uart_ports[line] = NULL;
768+
err_probe_dt:
767769
err_get_rxirq:
768770
err_too_small:
769771
err_get_base:

0 commit comments

Comments
 (0)