rtc: rv3032: quiet maybe-unused variable warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Feb 2021 11:22:13 +0000 (12:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 5 Feb 2021 23:58:25 +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>
Link: https://lore.kernel.org/r/20210202112219.3610853-17-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv3032.c

index 5161016bce0016d2524d52f0689c32d02fea52d2..d63102d5cb1e4450feab6c66a16fef1ac1c9628a 100644 (file)
@@ -906,7 +906,7 @@ static int rv3032_probe(struct i2c_client *client)
        return 0;
 }
 
-static const struct of_device_id rv3032_of_match[] = {
+static const __maybe_unused struct of_device_id rv3032_of_match[] = {
        { .compatible = "microcrystal,rv3032", },
        { }
 };