rtc: digicolor: quiet maybe-unused variable warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Feb 2021 11:22:02 +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: Baruch Siach <baruch@tkos.co.il>
Link: https://lore.kernel.org/r/20210202112219.3610853-6-alexandre.belloni@bootlin.com
drivers/rtc/rtc-digicolor.c

index 4fdfa5b6feb27074cdedef322be62b03e0b6bda7..218a6de19247a4eb15b9451880329bd3b6ef630a 100644 (file)
@@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
        return devm_rtc_register_device(rtc->rtc_dev);
 }
 
-static const struct of_device_id dc_dt_ids[] = {
+static const __maybe_unused struct of_device_id dc_dt_ids[] = {
        { .compatible = "cnxt,cx92755-rtc" },
        { /* sentinel */ }
 };