rtc: meson: quiet maybe-unused variable warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Feb 2021 11:22:07 +0000 (12:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 5 Feb 2021 23:58:24 +0000 (00:58 +0100)
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
drivers/rtc/rtc-meson.c

index 8642c06565ea016157a2357ed7b3e0f0188c431e..44bdc8b4a90d6b27b294e36c1f9e6c44e88b4df4 100644 (file)
@@ -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", },