aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/sirfsoc_uart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
index 03465b673945..1fd564b8194b 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -687,9 +687,10 @@ int sirfsoc_uart_probe(struct platform_device *pdev)
687 687
688 if (sirfport->hw_flow_ctrl) { 688 if (sirfport->hw_flow_ctrl) {
689 sirfport->p = pinctrl_get_select_default(&pdev->dev); 689 sirfport->p = pinctrl_get_select_default(&pdev->dev);
690 ret = IS_ERR(sirfport->p); 690 if (IS_ERR(sirfport->p)) {
691 if (ret) 691 ret = PTR_ERR(sirfport->p);
692 goto err; 692 goto err;
693 }
693 } 694 }
694 695
695 sirfport->clk = clk_get(&pdev->dev, NULL); 696 sirfport->clk = clk_get(&pdev->dev, NULL);