summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/imx355.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-09-21 18:23:24 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-11-16 10:31:11 +0100
commitbbaecc36b7e0d68d18fde9650261d4df703f110d (patch)
treeb1bf9503c0b16aa8df642c86fcb5dbcfef8da6cb /drivers/media/i2c/imx355.c
parentbe0b9b6399aadc8888996ad8724c96862205a2cb (diff)
downloadlinux-bbaecc36b7e0d68d18fde9650261d4df703f110d.tar.gz
media: i2c: imx355: silence unused acpi_device_id warning
If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx355.c:1836:36: warning: 'imx355_acpi_ids' defined but not used [-Wunused-const-variable=] [Sakari Ailus: Added a space before __maybe_unused] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/imx355.c')
-rw-r--r--drivers/media/i2c/imx355.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx355.c b/drivers/media/i2c/imx355.c
index 51245e71b411..700f7467fb31 100644
--- a/drivers/media/i2c/imx355.c
+++ b/drivers/media/i2c/imx355.c
@@ -1833,7 +1833,7 @@ static const struct dev_pm_ops imx355_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(imx355_suspend, imx355_resume)
};
-static const struct acpi_device_id imx355_acpi_ids[] = {
+static const struct acpi_device_id imx355_acpi_ids[] __maybe_unused = {
{ "SONY355A" },
{ /* sentinel */ }
};