media: ipu-bridge: Fix Kconfig dependencies
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 27 Sep 2023 08:53:12 +0000 (11:53 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Oct 2023 08:02:53 +0000 (10:02 +0200)
commit4670c8c3fb04e0e83e809ee57f94d1a4a704d26c
tree79c1d3cc919d1b72305714c5405d886a90c29d4a
parent760d03f90bf35a0724acd71a60c1ad753fdaa53e
media: ipu-bridge: Fix Kconfig dependencies

The current Kconfig symbol dependencies allow having the following Kconfig
symbol values

CONFIG_IPU_BRIDGE=m
CONFIG_VIDEO_IPU3_CIO2=y
CONFIG_CIO2_BRIDGE=n

This does not work as the IPU bridge API is conditional to
IS_ENABLED(CONFIG_IPU_BRIDGE). Fix this by changing the dependencies so
that CONFIG_IPU_BRIDGE can be separately selected.

The CONFIG_CIO2_BRIDGE symbol becomes redundant as a result and is
removed.

Fixes: 2545a2c02ba1 ("media: ipu3-cio2: allow ipu_bridge to be a module again")
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/Kconfig
drivers/media/pci/intel/ipu3/Kconfig
drivers/staging/media/atomisp/Kconfig