media: intel/ipu6: Fix direct dependency Kconfig error
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 1 May 2024 13:08:12 +0000 (14:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 2 May 2024 10:19:00 +0000 (11:19 +0100)
VIDEO_INTEL_IPU6 selects IPU6_BRIDGE, but they have different set of
dependencies.

It fixes this warning:
WARNING: unmet direct dependencies detected for IPU_BRIDGE
  Depends on [n]: MEDIA_SUPPORT [=y] && PCI [=y] && MEDIA_PCI_SUPPORT [=y] && I2C [=y] && ACPI [=n]
  Selected by [y]:
  - VIDEO_INTEL_IPU6 [=y] && MEDIA_SUPPORT [=y] && PCI [=y] && MEDIA_PCI_SUPPORT [=y] && (ACPI [=n] || COMPILE_TEST [=y]) && VIDEO_DEV [=y] && X86 [=y] && X86_64 [=y] && HAS_DMA [=y]

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/intel/Kconfig

index 04cb3d253486156eeadcdb3d127e1c7c87f3e16a..d9fcddce028bf736557e2c6c289d4f8056d80756 100644 (file)
@@ -6,7 +6,8 @@ source "drivers/media/pci/intel/ivsc/Kconfig"
 
 config IPU_BRIDGE
        tristate "Intel IPU Bridge"
-       depends on I2C && ACPI
+       depends on ACPI || COMPILE_TEST
+       depends on I2C
        help
          The IPU bridge is a helper library for Intel IPU drivers to
          function on systems shipped with Windows.