aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzk@kernel.org> 2020-09-21 18:23:22 +0200
committerGravatar Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2020-11-16 10:31:11 +0100
commit5347e1ed7761cf5fb62b03e488a05d90536a1bea (patch)
treeb4fb33c4ecb976e0dacc754a3d2ad95db07604ef /drivers
parentmedia: i2c: imx319: simplify getting state container (diff)
downloadlinux-5347e1ed7761cf5fb62b03e488a05d90536a1bea.tar.gz
linux-5347e1ed7761cf5fb62b03e488a05d90536a1bea.tar.bz2
linux-5347e1ed7761cf5fb62b03e488a05d90536a1bea.zip
media: i2c: imx319: silence unused acpi_device_id warning
If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx319.c:2536:36: warning: 'imx319_acpi_ids' defined but not used [-Wunused-const-variable=] 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')
-rw-r--r--drivers/media/i2c/imx319.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx319.c b/drivers/media/i2c/imx319.c
index 8b86fc65364e..8473c0bbb35d 100644
--- a/drivers/media/i2c/imx319.c
+++ b/drivers/media/i2c/imx319.c
@@ -2533,7 +2533,7 @@ static const struct dev_pm_ops imx319_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(imx319_suspend, imx319_resume)
};
-static const struct acpi_device_id imx319_acpi_ids[] = {
+static const struct acpi_device_id imx319_acpi_ids[] __maybe_unused = {
{ "SONY319A" },
{ /* sentinel */ }
};