From: Sakari Ailus Date: Tue, 2 Feb 2021 20:07:20 +0000 (+0100) Subject: media: ipu3-cio2: Build bridge only if ACPI is enabled X-Git-Tag: accepted/tizen/unified/20230118.172025~7835^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d12783207ae8f687e1bf9d79803a705041ff2679;p=platform%2Fkernel%2Flinux-rpi.git media: ipu3-cio2: Build bridge only if ACPI is enabled ipu3-cio2-bridge uses several features of the ACPI framework that have no meaningful replacement when ACPI is disabled. Instead of adding #ifdefs to the affected places, only build the bridge code if CONFIG_ACPI is enabled. Fixes: 803abec64ef9 ("media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver") Signed-off-by: Sakari Ailus Reported-by: Randy Dunlap Acked-by: Randy Dunlap # build-tested Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/intel/ipu3/Kconfig b/drivers/media/pci/intel/ipu3/Kconfig index 24f4e79..dce8274 100644 --- a/drivers/media/pci/intel/ipu3/Kconfig +++ b/drivers/media/pci/intel/ipu3/Kconfig @@ -20,7 +20,7 @@ config VIDEO_IPU3_CIO2 config CIO2_BRIDGE bool "IPU3 CIO2 Sensors Bridge" - depends on VIDEO_IPU3_CIO2 + depends on VIDEO_IPU3_CIO2 && ACPI help This extension provides an API for the ipu3-cio2 driver to create connections to cameras that are hidden in the SSDB buffer in ACPI.