drm/tegra: dsi: Leave parent clock alone
authorThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 13:34:50 +0000 (14:34 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:12:13 +0000 (16:12 +0100)
The common clock framework will take care of preparing and enabling the
parent of the DSI clock automatically.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dsi.c

index c62f68071adee7b0ae1f190cb6f981143d0b9db0..e817ee11f0ec2939d17cb209d8ca0b25a5331b3f 100644 (file)
@@ -886,12 +886,6 @@ static int tegra_dsi_probe(struct platform_device *pdev)
                return PTR_ERR(dsi->clk_parent);
        }
 
-       err = clk_prepare_enable(dsi->clk_parent);
-       if (err < 0) {
-               dev_err(&pdev->dev, "cannot enable parent clock\n");
-               return err;
-       }
-
        dsi->vdd = devm_regulator_get(&pdev->dev, "avdd-dsi-csi");
        if (IS_ERR(dsi->vdd)) {
                dev_err(&pdev->dev, "cannot get VDD supply\n");
@@ -966,7 +960,6 @@ static int tegra_dsi_remove(struct platform_device *pdev)
        tegra_mipi_free(dsi->mipi);
 
        regulator_disable(dsi->vdd);
-       clk_disable_unprepare(dsi->clk_parent);
        clk_disable_unprepare(dsi->clk_lp);
        clk_disable_unprepare(dsi->clk);
        reset_control_assert(dsi->rst);