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

rtc: s3c: 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>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210202112934.3612726-2-alexandre.belloni@bootlin.com

+1 -1
+1 -1
drivers/rtc/rtc-s3c.c
··· 558 558 .disable = s3c6410_rtc_disable, 559 559 }; 560 560 561 - static const struct of_device_id s3c_rtc_dt_match[] = { 561 + static const __maybe_unused struct of_device_id s3c_rtc_dt_match[] = { 562 562 { 563 563 .compatible = "samsung,s3c2410-rtc", 564 564 .data = &s3c2410_rtc_data,