mirror of https://gitee.com/openkylin/linux.git
rtc: meson: quiet maybe-unused variable warning
When CONFIG_OF is disabled then the matching table is not referenced. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Kevin Hilman <khilman@baylibre.com> Link: https://lore.kernel.org/r/20210202112219.3610853-11-alexandre.belloni@bootlin.com
This commit is contained in:
parent
2717c59e26
commit
ef886c440b
|
@ -380,7 +380,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static const struct of_device_id meson_rtc_dt_match[] = {
|
||||
static const __maybe_unused struct of_device_id meson_rtc_dt_match[] = {
|
||||
{ .compatible = "amlogic,meson6-rtc", },
|
||||
{ .compatible = "amlogic,meson8-rtc", },
|
||||
{ .compatible = "amlogic,meson8b-rtc", },
|
||||
|
|
Loading…
Reference in New Issue