rtc: rv3028: quiet maybe-unused variable warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Feb 2021 11:22:11 +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-15-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv3028.c

index 2ee2afa..0c48d98 100644 (file)
@@ -898,7 +898,7 @@ static int rv3028_probe(struct i2c_client *client)
        return 0;
 }
 
-static const struct of_device_id rv3028_of_match[] = {
+static const __maybe_unused struct of_device_id rv3028_of_match[] = {
        { .compatible = "microcrystal,rv3028", },
        { }
 };