summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-03-26 12:21:25 +0100
committerThierry Reding <treding@nvidia.com>2014-06-05 23:09:21 +0200
commit80b9213913f6efdfb254b4a7cd89a0f4b0b8b21d (patch)
treefe00de975d83728210a2c2bc0ab1652911e3e6d5
parentfb50a116bbbc25c7c11e00e6d10a53b9ec3c38e8 (diff)
downloadlinux-80b9213913f6efdfb254b4a7cd89a0f4b0b8b21d.tar.bz2
drm/tegra: hdmi - Remove duplicate code
The generic Tegra output code already sets up the clocks properly, so there's no need to do it again when the HDMI output is enabled. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/tegra/hdmi.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index 8b797913470a..4475dd885282 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -723,16 +723,6 @@ static int tegra_output_hdmi_enable(struct tegra_output *output)
return err;
}
- /*
- * This assumes that the display controller will divide its parent
- * clock by 2 to generate the pixel clock.
- */
- err = tegra_output_setup_clock(output, hdmi->clk, pclk * 2);
- if (err < 0) {
- dev_err(hdmi->dev, "failed to setup clock: %d\n", err);
- return err;
- }
-
err = clk_set_rate(hdmi->clk, pclk);
if (err < 0)
return err;