aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 2021-05-28 08:42:00 -0400
committerGravatar Jakub Kicinski <kuba@kernel.org> 2021-05-28 15:05:56 -0700
commit1ab4fe09977e9f32a6992072c648865fcd36b750 (patch)
tree093266c17ffcaf4b9312eea117873f664ef1d0cd
parentnfc: st21nfca: mark ACPI and OF device ID tables as maybe unused (diff)
downloadlinux-1ab4fe09977e9f32a6992072c648865fcd36b750.tar.gz
linux-1ab4fe09977e9f32a6992072c648865fcd36b750.tar.bz2
linux-1ab4fe09977e9f32a6992072c648865fcd36b750.zip
nfc: st95hf: mark ACPI and OF device ID tables as maybe unused
The driver can match either via OF or ACPI ID tables. If one configuration is disabled, the table will be unused: drivers/nfc/st95hf/core.c:1059:34: warning: ‘st95hf_spi_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20210528124200.79655-12-krzysztof.kozlowski@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/nfc/st95hf/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c
index 88924be8decb..0d99181b6ce3 100644
--- a/drivers/nfc/st95hf/core.c
+++ b/drivers/nfc/st95hf/core.c
@@ -1056,7 +1056,7 @@ static const struct spi_device_id st95hf_id[] = {
};
MODULE_DEVICE_TABLE(spi, st95hf_id);
-static const struct of_device_id st95hf_spi_of_match[] = {
+static const struct of_device_id st95hf_spi_of_match[] __maybe_unused = {
{ .compatible = "st,st95hf" },
{ },
};