Skip to content

Commit ef886c4

Browse files
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
1 parent 2717c59 commit ef886c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-meson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
380380
return ret;
381381
}
382382

383-
static const struct of_device_id meson_rtc_dt_match[] = {
383+
static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
384384
{ .compatible = "amlogic,meson6-rtc", },
385385
{ .compatible = "amlogic,meson8-rtc", },
386386
{ .compatible = "amlogic,meson8b-rtc", },

0 commit comments

Comments
 (0)