From: Simon Glass Date: Thu, 14 Jan 2016 11:28:27 -0700 Subject: [U-Boot] [PATCH 15/23] tegra: video: Move the check for CONFIG_OF_CONTROL to Kconfig In-Reply-To: <1452796115-21076-1-git-send-email-sjg@chromium.org> References: <1452796115-21076-1-git-send-email-sjg@chromium.org> Message-ID: <1452796115-21076-16-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We can check this in Kconfig now. Signed-off-by: Simon Glass --- drivers/video/Kconfig | 1 + drivers/video/tegra.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 9c2c937..35fe192 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -324,6 +324,7 @@ config VIDEO_SANDBOX_SDL config VIDEO_TEGRA20 bool "Enable LCD support on Tegra20" + depends on OF_CONTROL help Tegra20 supports video output to an attached LCD panel as well as other options such as HDMI. Only the LCD is supported in U-Boot. diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 62c4246..5fef215 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -51,10 +51,6 @@ vidinfo_t panel_info = { .vl_col = -1, }; -#if !CONFIG_IS_ENABLED(OF_CONTROL) -#error "You must enable CONFIG_OF_CONTROL to get Tegra LCD support" -#endif - static void update_window(struct dc_ctlr *dc, struct disp_ctl_win *win) { unsigned h_dda, v_dda; -- 2.6.0.rc2.230.g3dd15c0