summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r--drivers/video/tegra/dc/hdmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index efb1759adec6..c4d3257f99e5 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -992,6 +992,7 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc)
goto err_free_irq;
}
+#ifdef CONFIG_TEGRA_NVHDCP
hdmi->nvhdcp = tegra_nvhdcp_create(hdmi, dc->ndev->id,
dc->out->dcc_bus);
if (IS_ERR_OR_NULL(hdmi->nvhdcp)) {
@@ -999,6 +1000,9 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc)
err = PTR_ERR(hdmi->nvhdcp);
goto err_edid_destroy;
}
+#else
+ hdmi->nvhdcp = NULL;
+#endif
INIT_DELAYED_WORK(&hdmi->work, tegra_dc_hdmi_detect_worker);