diff options
| author | Alexandre Belloni <[email protected]> | 2021-02-02 11:22:02 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2021-02-05 23:58:24 +0000 |
| commit | 97de1f587ab909c40a955bb29b8f82896625209c (patch) | |
| tree | 30ae9136bc65df44d1ce34b3954fa955899e6a87 /drivers/rtc | |
| parent | rtc: brcmstb-waketimer: quiet maybe-unused variable warning (diff) | |
| download | kernel-97de1f587ab909c40a955bb29b8f82896625209c.tar.gz kernel-97de1f587ab909c40a955bb29b8f82896625209c.zip | |
rtc: digicolor: quiet maybe-unused variable warning
When CONFIG_OF is disabled then the matching table is not referenced.
Signed-off-by: Alexandre Belloni <[email protected]>
Acked-by: Baruch Siach <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-digicolor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c index 4fdfa5b6feb2..218a6de19247 100644 --- a/drivers/rtc/rtc-digicolor.c +++ b/drivers/rtc/rtc-digicolor.c @@ -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 */ } }; |
