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

rtc: brcmstb-waketimer: 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: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210202112219.3610853-5-alexandre.belloni@bootlin.com

+1 -1
+1 -1
drivers/rtc/rtc-brcmstb-waketimer.c
··· 306 306 static SIMPLE_DEV_PM_OPS(brcmstb_waketmr_pm_ops, 307 307 brcmstb_waketmr_suspend, brcmstb_waketmr_resume); 308 308 309 - static const struct of_device_id brcmstb_waketmr_of_match[] = { 309 + static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = { 310 310 { .compatible = "brcm,brcmstb-waketimer" }, 311 311 { /* sentinel */ }, 312 312 };