drm/tegra: hdmi - Remove duplicate code
authorThierry Reding <treding@nvidia.com>
Wed, 26 Mar 2014 11:21:25 +0000 (12:21 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 21:09:21 +0000 (23:09 +0200)
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>
drivers/gpu/drm/tegra/hdmi.c

index 8b797913470a6df0b94c5318e39c9f38547591d3..4475dd885282cac682f2d336d49de0b312f996a9 100644 (file)
@@ -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;