Skip to content

Commit

Permalink
serial/efm32-uart: don't slur over failure in probe_dt
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Uwe Kleine-König authored and Greg Kroah-Hartman committed Aug 1, 2013
1 parent 11f1ad3 commit 3fc1eb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/tty/serial/efm32-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,8 @@ static int efm32_uart_probe(struct platform_device *pdev)

if (pdata)
efm_port->pdata = *pdata;
}
} else if (ret < 0)
goto err_probe_dt;

line = efm_port->port.line;

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

if (line >= 0 && line < ARRAY_SIZE(efm32_uart_ports))
efm32_uart_ports[line] = NULL;
err_probe_dt:
err_get_rxirq:
err_too_small:
err_get_base:
Expand Down

0 comments on commit 3fc1eb5

Please sign in to comment.