media: ipu3-cio2: Build bridge only if ACPI is enabled
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 2 Feb 2021 20:07:20 +0000 (21:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 6 Feb 2021 08:40:04 +0000 (09:40 +0100)
commitd12783207ae8f687e1bf9d79803a705041ff2679
tree73c775ce68107c41e59180ed1288aac962ab8032
parent85db876b08f10705e992bc924530f74de3859f22
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 <sakari.ailus@linux.intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/Kconfig