summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-meson.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2021-02-02 12:22:07 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-02-06 00:58:24 +0100
commitef886c440b9bf11d346b158fdb4c9d10be0397c3 (patch)
tree571d6f5f9066076d0ff42b3518ce8ec960b70ea9 /drivers/rtc/rtc-meson.c
parent2717c59e26be0284b5dd378ee962239f1c978c4f (diff)
rtc: meson: quiet maybe-unused variable warning
When CONFIG_OF is disabled then the matching table is not referenced. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Kevin Hilman <khilman@baylibre.com> Link: https://lore.kernel.org/r/20210202112219.3610853-11-alexandre.belloni@bootlin.com
Diffstat (limited to 'drivers/rtc/rtc-meson.c')
-rw-r--r--drivers/rtc/rtc-meson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
index 8642c06565ea..44bdc8b4a90d 100644
--- a/drivers/rtc/rtc-meson.c
+++ b/drivers/rtc/rtc-meson.c
@@ -380,7 +380,7 @@ out_disable_vdd:
return ret;
}
-static const struct of_device_id meson_rtc_dt_match[] = {
+static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
{ .compatible = "amlogic,meson6-rtc", },
{ .compatible = "amlogic,meson8-rtc", },
{ .compatible = "amlogic,meson8b-rtc", },