|
@@ -499,8 +499,7 @@ err_register:
|
|
|
pm_runtime_put_sync(&pdev->dev);
|
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
|
|
- if (!IS_ERR(priv->clk))
|
|
|
- clk_disable_unprepare(priv->clk);
|
|
|
+ clk_disable_unprepare(priv->clk);
|
|
|
err_ioremap:
|
|
|
dev_err(dev, "initialization failed.\n");
|
|
|
return ret;
|
|
@@ -517,8 +516,7 @@ static int omap_rng_remove(struct platform_device *pdev)
|
|
|
pm_runtime_put_sync(&pdev->dev);
|
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
|
|
- if (!IS_ERR(priv->clk))
|
|
|
- clk_disable_unprepare(priv->clk);
|
|
|
+ clk_disable_unprepare(priv->clk);
|
|
|
|
|
|
return 0;
|
|
|
}
|