]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: ipu-bridge: fix ipu6 Kconfig dependencies
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 Jul 2024 09:53:50 +0000 (11:53 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 30 Jul 2024 06:36:29 +0000 (08:36 +0200)
commitd7b5f7537c8282e1e1919408d0b6c69877fd35f8
treefa2c81e48326e286183c02321453e28f0dc72afe
parent8400291e289ee6b2bf9779ff1c83a291501f017b
media: ipu-bridge: fix ipu6 Kconfig dependencies

Commit 4670c8c3fb04 ("media: ipu-bridge: Fix Kconfig dependencies") changed
how IPU_BRIDGE dependencies are handled for all drivers, but the IPU6
variant was added the old way, which causes build time warnings when I2C is
turned off:

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

To make it consistent with the other IPU drivers as well as avoid this
warning, change the 'select' into 'depends on'.

Fixes: c70281cc83d6 ("media: intel/ipu6: add Kconfig and Makefile")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[Sakari Ailus: Alternatively depend on !IPU_BRIDGE.]
Cc: stable@vger.kernel.org # for v6.10
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu6/Kconfig