aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/8250/8250_dw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index 5bb0c42c88dd..bda75d317d24 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -515,7 +515,8 @@ static int dw8250_probe(struct platform_device *pdev)
515 /* If no clock rate is defined, fail. */ 515 /* If no clock rate is defined, fail. */
516 if (!p->uartclk) { 516 if (!p->uartclk) {
517 dev_err(dev, "clock rate not defined\n"); 517 dev_err(dev, "clock rate not defined\n");
518 return -EINVAL; 518 err = -EINVAL;
519 goto err_clk;
519 } 520 }
520 521
521 data->pclk = devm_clk_get(dev, "apb_pclk"); 522 data->pclk = devm_clk_get(dev, "apb_pclk");