Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: rx8010: 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>
Link: https://lore.kernel.org/r/20210202112219.3610853-19-alexandre.belloni@bootlin.com

+1 -1
+1 -1
drivers/rtc/rtc-rx8010.c
··· 55 55 }; 56 56 MODULE_DEVICE_TABLE(i2c, rx8010_id); 57 57 58 - static const struct of_device_id rx8010_of_match[] = { 58 + static const __maybe_unused struct of_device_id rx8010_of_match[] = { 59 59 { .compatible = "epson,rx8010" }, 60 60 { } 61 61 };