diff options
Diffstat (limited to 'drivers/tty/serial/8250/8250_em.c')
-rw-r--r-- | drivers/tty/serial/8250/8250_em.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_em.c b/drivers/tty/serial/8250/8250_em.c index ff4254249bd8..be6c28937ecc 100644 --- a/drivers/tty/serial/8250/8250_em.c +++ b/drivers/tty/serial/8250/8250_em.c | |||
@@ -110,8 +110,9 @@ static int __devinit serial8250_em_probe(struct platform_device *pdev) | |||
110 | } | 110 | } |
111 | 111 | ||
112 | priv->sclk = clk_get(&pdev->dev, "sclk"); | 112 | priv->sclk = clk_get(&pdev->dev, "sclk"); |
113 | if (!priv->sclk) { | 113 | if (IS_ERR(priv->sclk)) { |
114 | dev_err(&pdev->dev, "unable to get clock\n"); | 114 | dev_err(&pdev->dev, "unable to get clock\n"); |
115 | ret = PTR_ERR(priv->sclk); | ||
115 | goto err1; | 116 | goto err1; |
116 | } | 117 | } |
117 | 118 | ||