提交 41a8e72e 编写于 作者: T Thierry Reding

drm/tegra: dsi: Leave parent clock alone

The common clock framework will take care of preparing and enabling the
parent of the DSI clock automatically.
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 183ef288
...@@ -886,12 +886,6 @@ static int tegra_dsi_probe(struct platform_device *pdev) ...@@ -886,12 +886,6 @@ static int tegra_dsi_probe(struct platform_device *pdev)
return PTR_ERR(dsi->clk_parent); 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"); dsi->vdd = devm_regulator_get(&pdev->dev, "avdd-dsi-csi");
if (IS_ERR(dsi->vdd)) { if (IS_ERR(dsi->vdd)) {
dev_err(&pdev->dev, "cannot get VDD supply\n"); dev_err(&pdev->dev, "cannot get VDD supply\n");
...@@ -966,7 +960,6 @@ static int tegra_dsi_remove(struct platform_device *pdev) ...@@ -966,7 +960,6 @@ static int tegra_dsi_remove(struct platform_device *pdev)
tegra_mipi_free(dsi->mipi); tegra_mipi_free(dsi->mipi);
regulator_disable(dsi->vdd); regulator_disable(dsi->vdd);
clk_disable_unprepare(dsi->clk_parent);
clk_disable_unprepare(dsi->clk_lp); clk_disable_unprepare(dsi->clk_lp);
clk_disable_unprepare(dsi->clk); clk_disable_unprepare(dsi->clk);
reset_control_assert(dsi->rst); reset_control_assert(dsi->rst);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册