summaryrefslogtreecommitdiff
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorDaniel Palmer <daniel@0x0f.com>2021-09-19 16:26:16 +0900
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-17 11:05:54 +0100
commit0fe1402069812f0887877b26471d7a04bc985ced (patch)
tree29dadec4f2011f27302ab2a957a3793e35cc01c6 /drivers/iio/accel
parent2b025c92cdae1df5e254040de4410b4837f662df (diff)
iio: accel: mma7660: Mark acpi match table as maybe unused
When building kernels without ACPI support the table is declared but is not used because ACPI_PTR() turns it into a NULL. Add the __maybe_unused attribute to stop the compiler whining. Signed-off-by: Daniel Palmer <daniel@0x0f.com> Link: https://lore.kernel.org/r/20210919072616.3849723-1-daniel@0x0f.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r--drivers/iio/accel/mma7660.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c
index 47f5cd66e996..cd6cdf2c51b0 100644
--- a/drivers/iio/accel/mma7660.c
+++ b/drivers/iio/accel/mma7660.c
@@ -254,7 +254,7 @@ static const struct of_device_id mma7660_of_match[] = {
};
MODULE_DEVICE_TABLE(of, mma7660_of_match);
-static const struct acpi_device_id mma7660_acpi_id[] = {
+static const struct acpi_device_id __maybe_unused mma7660_acpi_id[] = {
{"MMA7660", 0},
{}
};