diff options
author | Anatolij Gustschin <agust@denx.de> | 2020-10-18 20:32:35 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2020-10-26 20:55:29 +0100 |
commit | 8c9940d5ece509ce681bf1b6481832e652526820 (patch) | |
tree | 09615c5608bfe5ec463d221f5bfbc0e64c754062 /board/BuS | |
parent | 23106209604be000940d7259f2f4d852451f573d (diff) | |
download | u-boot-8c9940d5ece509ce681bf1b6481832e652526820.tar.gz u-boot-8c9940d5ece509ce681bf1b6481832e652526820.tar.bz2 u-boot-8c9940d5ece509ce681bf1b6481832e652526820.zip |
eb_cpu5282: fix CONFIG_DM_VIDEO build warnings
Remove CONFIG_VIDEO dependency to fix board removal warnings.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Jens Scharsig <esw@bus-elektronik.de>
Diffstat (limited to 'board/BuS')
-rw-r--r-- | board/BuS/eb_cpu5282/eb_cpu5282.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c index 1d05e40c20..f5e4de3c41 100644 --- a/board/BuS/eb_cpu5282/eb_cpu5282.c +++ b/board/BuS/eb_cpu5282/eb_cpu5282.c @@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR; -#ifdef CONFIG_VIDEO +#if IS_ENABLED(CONFIG_VIDEO_VCXK) unsigned long display_width; unsigned long display_height; #endif @@ -183,8 +183,7 @@ void __led_set(led_id_t mask, int state) MCFGPTA_GPTPORT &= ~(1 << 3); } -#if defined(CONFIG_VIDEO) - +#if IS_ENABLED(CONFIG_VIDEO_VCXK) int drv_video_init(void) { char *s; @@ -225,7 +224,7 @@ int drv_video_init(void) /*---------------------------------------------------------------------------*/ -#ifdef CONFIG_VIDEO +#if IS_ENABLED(CONFIG_VIDEO_VCXK) int do_brightness(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int rcode = 0; |