Skip to content

Commit 7d6bec2

Browse files
rtc: s3c: quiet maybe-unused variable warning
When CONFIG_OF is disabled then the matching table is not referenced. Signed-off-by: Alexandre Belloni <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5c78cce commit 7d6bec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-s3c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static struct s3c_rtc_data const s3c6410_rtc_data = {
558558
.disable = s3c6410_rtc_disable,
559559
};
560560

561-
static const struct of_device_id s3c_rtc_dt_match[] = {
561+
static const __maybe_unused struct of_device_id s3c_rtc_dt_match[] = {
562562
{
563563
.compatible = "samsung,s3c2410-rtc",
564564
.data = &s3c2410_rtc_data,

0 commit comments

Comments
 (0)