diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-02-02 14:29:34 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-02-06 02:59:16 +0300 |
commit | 7d6bec2868f6a1746745cd452bc85c65f78b78c5 (patch) | |
tree | 3824d0bd3779e92e8293df6e5935b6fce20f1383 | |
parent | 5c78cceeb2d8bdce0ffff671c91c8edc0c900a77 (diff) | |
download | linux-7d6bec2868f6a1746745cd452bc85c65f78b78c5.tar.xz |
rtc: s3c: 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>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210202112934.3612726-2-alexandre.belloni@bootlin.com
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index f07b0c43aafe..e57d3ca70a78 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -558,7 +558,7 @@ static struct s3c_rtc_data const s3c6410_rtc_data = { .disable = s3c6410_rtc_disable, }; -static const struct of_device_id s3c_rtc_dt_match[] = { +static const __maybe_unused struct of_device_id s3c_rtc_dt_match[] = { { .compatible = "samsung,s3c2410-rtc", .data = &s3c2410_rtc_data, |