Merge branch 'for-linus/2639/i2c-1' of git://git.fluff.org/bjdooks/linux
[cascardo/linux.git] / drivers / crypto / omap-aes.c
index add2a1a..5b970d9 100644 (file)
@@ -839,9 +839,9 @@ static int omap_aes_probe(struct platform_device *pdev)
 
        /* Initializing the clock */
        dd->iclk = clk_get(dev, "ick");
-       if (!dd->iclk) {
+       if (IS_ERR(dd->iclk)) {
                dev_err(dev, "clock intialization failed.\n");
-               err = -ENODEV;
+               err = PTR_ERR(dd->iclk);
                goto err_res;
        }