]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
tegra: video: Move the check for CONFIG_OF_CONTROL to Kconfig
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2016 23:37:54 +0000 (16:37 -0700)
committerTom Warren <twarren@nvidia.com>
Tue, 16 Feb 2016 16:17:52 +0000 (09:17 -0700)
We can check this in Kconfig now.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/video/Kconfig
drivers/video/tegra.c

index b6c0e3cc2797932d4f4ca7ee51caa205bb1910fa..ff4179fcd89d7437b47e77cc5f9ec1dc8de89dea 100644 (file)
@@ -383,6 +383,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.
index 5b8d623e08c67df4cea17666ea57656f96eaaafe..fc70beb90b1269d4c6d11a53b7bb7e93313a75e9 100644 (file)
@@ -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;