drm/tegra: Remove unused ->mode_fixup() callbacks

All output drivers have now been converted to use the ->atomic_check()
callback, so the ->mode_fixup() callbacks are no longer used.

Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Thierry Reding
2014-12-19 15:19:21 +01:00
parent 1503ca47d7
commit 3f0fb52ef0
4 changed files with 0 additions and 179 deletions

View File

@@ -781,32 +781,6 @@ static void tegra_sor_encoder_dpms(struct drm_encoder *encoder, int mode)
{
}
static bool tegra_sor_encoder_mode_fixup(struct drm_encoder *encoder,
const struct drm_display_mode *mode,
struct drm_display_mode *adjusted)
{
struct tegra_output *output = encoder_to_output(encoder);
struct tegra_dc *dc = to_tegra_dc(encoder->crtc);
unsigned long pclk = mode->clock * 1000;
struct tegra_sor *sor = to_sor(output);
int err;
err = tegra_dc_setup_clock(dc, sor->clk_parent, pclk, 0);
if (err < 0) {
dev_err(output->dev, "failed to setup DC clock: %d\n", err);
return false;
}
err = clk_set_rate(sor->clk_parent, pclk);
if (err < 0) {
dev_err(output->dev, "failed to set clock rate to %lu Hz\n",
pclk);
return false;
}
return true;
}
static void tegra_sor_encoder_prepare(struct drm_encoder *encoder)
{
}
@@ -1343,7 +1317,6 @@ tegra_sor_encoder_atomic_check(struct drm_encoder *encoder,
static const struct drm_encoder_helper_funcs tegra_sor_encoder_helper_funcs = {
.dpms = tegra_sor_encoder_dpms,
.mode_fixup = tegra_sor_encoder_mode_fixup,
.prepare = tegra_sor_encoder_prepare,
.commit = tegra_sor_encoder_commit,
.mode_set = tegra_sor_encoder_mode_set,