ASoC: fsl: imx-wm8962: remove an unneeded check
[firefly-linux-kernel-4.4.55.git] / sound / soc / fsl / imx-wm8962.c
index 722afe69169e904798974115292159a89a08ba18..f7be44ad443a68742f659c06393c62815aea069a 100644 (file)
@@ -279,8 +279,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
        return 0;
 
 clk_fail:
-       if (!IS_ERR(data->codec_clk))
-               clk_disable_unprepare(data->codec_clk);
+       clk_disable_unprepare(data->codec_clk);
 fail:
        if (ssi_np)
                of_node_put(ssi_np);
@@ -311,6 +310,7 @@ static struct platform_driver imx_wm8962_driver = {
        .driver = {
                .name = "imx-wm8962",
                .owner = THIS_MODULE,
+               .pm = &snd_soc_pm_ops,
                .of_match_table = imx_wm8962_dt_ids,
        },
        .probe = imx_wm8962_probe,