diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-07-30 14:35:21 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-01 01:05:41 (GMT) |
commit | 3fc1eb5fe5318d3eff9938240c29cc6ce2d6ce4e (patch) | |
tree | 48c7cfe71fbb8cb1c747e19479a8536a71007e95 /drivers/tty/serial | |
parent | 11f1ad3ab4c2b2f208f7ef5b0360903bdf00df61 (diff) | |
download | linux-fsl-qoriq-3fc1eb5fe5318d3eff9938240c29cc6ce2d6ce4e.tar.xz |
serial/efm32-uart: don't slur over failure in probe_dt
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/efm32-uart.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c index ce1ebbb..98adaa1 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) if (pdata) efm_port->pdata = *pdata; - } + } else if (ret < 0) + goto err_probe_dt; line = efm_port->port.line; @@ -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: |