]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: Kconfig: include test_drivers with MEDIA_TEST_SUPPORT
authorGuillaume Tucker <guillaume.tucker@collabora.com>
Wed, 15 Apr 2020 13:35:52 +0000 (14:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 15 Apr 2020 13:46:10 +0000 (15:46 +0200)
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" <bot@kernelci.org>
Fixes: 4b32216adb010 ("media: split test drivers from platform directory")
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/Kconfig
drivers/media/test_drivers/Kconfig

index 8694e3c6d1833edc5e0c8141c4df9a9c4b858c59..ba24db7eb4d6d958059e5e3e82891073f94cdf17 100644 (file)
@@ -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
index 9f4a9cfbacc9cf5d15bb921ecd2a5e40952042a7..e62abec030c304f08ed6c7a1ef1bcbd94d1f38fc 100644 (file)
@@ -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
@@ -24,5 +22,3 @@ config VIDEO_VIM2M
 source "drivers/media/test_drivers/vicodec/Kconfig"
 
 endif #V4L_TEST_DRIVERS
-
-endif #MEDIA_TEST_SUPPORT