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
This commit is contained in:
Alexandre Belloni 2021-02-02 12:22:07 +01:00
parent 2717c59e26
commit ef886c440b
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
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", },