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

rtc: rx8581: 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-20-alexandre.belloni@bootlin.com

+1 -1
+1 -1
drivers/rtc/rtc-rx8581.c
··· 314 314 }; 315 315 MODULE_DEVICE_TABLE(i2c, rx8581_id); 316 316 317 - static const struct of_device_id rx8581_of_match[] = { 317 + static const __maybe_unused struct of_device_id rx8581_of_match[] = { 318 318 { .compatible = "epson,rx8571", .data = &rx8571_config }, 319 319 { .compatible = "epson,rx8581", .data = &rx8581_config }, 320 320 { /* sentinel */ }