diff options
-rw-r--r-- | drivers/tty/serial/tegra_hsuart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/tegra_hsuart.c b/drivers/tty/serial/tegra_hsuart.c index 3efa1a6632c9..76b7a79d0708 100644 --- a/drivers/tty/serial/tegra_hsuart.c +++ b/drivers/tty/serial/tegra_hsuart.c @@ -1312,7 +1312,7 @@ static int tegra_uart_probe(struct platform_device *pdev) u->regshift = 2; t->clk = clk_get(&pdev->dev, NULL); - if (!t->clk) { + if (IS_ERR_OR_NULL(t->clk)) { dev_err(&pdev->dev, "Couldn't get the clock\n"); goto fail; } |