rtc: brcmstb-waketimer: quiet maybe-unused variable warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Feb 2021 11:22:01 +0000 (12:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 5 Feb 2021 23:58:24 +0000 (00:58 +0100)
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
drivers/rtc/rtc-brcmstb-waketimer.c

index 0366e2ff04ae4de8b05067119961b0a2334864a3..c74130e8f496d1d37cecf8eecf3a9aa1f4264277 100644 (file)
@@ -306,7 +306,7 @@ static int brcmstb_waketmr_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(brcmstb_waketmr_pm_ops,
                         brcmstb_waketmr_suspend, brcmstb_waketmr_resume);
 
-static const struct of_device_id brcmstb_waketmr_of_match[] = {
+static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = {
        { .compatible = "brcm,brcmstb-waketimer" },
        { /* sentinel */ },
 };