Skip to content

Commit

Permalink
media: Kconfig: include test_drivers with MEDIA_TEST_SUPPORT
Browse files Browse the repository at this point in the history
Include test_drivers/Kconfig when MEDIA_TEST_SUPPORT is enabled rather
than MEDIA_PLATFORM_SUPPORT.  Test drivers should not depend on
platform drivers to be enabled.

Reported-by: "kernelci.org bot" <[email protected]>
Fixes: 4b32216 ("media: split test drivers from platform directory")
Signed-off-by: Guillaume Tucker <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
gctucker authored and mchehab committed Apr 15, 2020
1 parent df823a8 commit ffb2e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion drivers/media/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,13 @@ source "drivers/media/common/Kconfig"

if MEDIA_PLATFORM_SUPPORT
source "drivers/media/platform/Kconfig"
source "drivers/media/test_drivers/Kconfig"
source "drivers/media/mmc/Kconfig"
endif

if MEDIA_TEST_SUPPORT
source "drivers/media/test_drivers/Kconfig"
endif

source "drivers/media/firewire/Kconfig"

endmenu
Expand Down
4 changes: 0 additions & 4 deletions drivers/media/test_drivers/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only

if MEDIA_TEST_SUPPORT

menuconfig V4L_TEST_DRIVERS
bool "V4L test drivers"
depends on VIDEO_DEV
Expand All @@ -24,5 +22,3 @@ config VIDEO_VIM2M
source "drivers/media/test_drivers/vicodec/Kconfig"

endif #V4L_TEST_DRIVERS

endif #MEDIA_TEST_SUPPORT

0 comments on commit ffb2e00

Please sign in to comment.