diff mbox

[U-Boot,v2,15/23] tegra: video: Move the check for CONFIG_OF_CONTROL to Kconfig

Message ID 1454197082-1312-16-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Tom Warren
Headers show

Commit Message

Simon Glass Jan. 30, 2016, 11:37 p.m. UTC
We can check this in Kconfig now.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 drivers/video/Kconfig | 1 +
 drivers/video/tegra.c | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

Comments

Anatolij Gustschin Jan. 31, 2016, 6:24 p.m. UTC | #1
On Sat, 30 Jan 2016 16:37:54 -0700
Simon Glass sjg@chromium.org wrote:

> We can check this in Kconfig now.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> Changes in v2: None
> 
>  drivers/video/Kconfig | 1 +
>  drivers/video/tegra.c | 4 ----
>  2 files changed, 1 insertion(+), 4 deletions(-)

Acked-by: Anatolij Gustschin <agust@denx.de>
diff mbox

Patch

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index cda7a72..981ba8b 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -339,6 +339,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 5b8d623..fc70beb 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;