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

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

+1 -1
+1 -1
drivers/rtc/rtc-rv3029c2.c
··· 808 808 }; 809 809 MODULE_DEVICE_TABLE(i2c, rv3029_id); 810 810 811 - static const struct of_device_id rv3029_of_match[] = { 811 + static const __maybe_unused struct of_device_id rv3029_of_match[] = { 812 812 { .compatible = "microcrystal,rv3029" }, 813 813 { } 814 814 };