Skip to content

Commit 103c14d

Browse files
rtc: rx6110: fix warning with !OF
rx6110_spi_of_match is not used when !OF, leading to a warning: >> drivers/rtc/rtc-rx6110.c:384:34: warning: 'rx6110_spi_of_match' defined but not used [-Wunused-const-variable=] 384 | static const struct of_device_id rx6110_spi_of_match[] = { | ^~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 2e830cc commit 103c14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-rx6110.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static const struct spi_device_id rx6110_spi_id[] = {
376376
};
377377
MODULE_DEVICE_TABLE(spi, rx6110_spi_id);
378378

379-
static const struct of_device_id rx6110_spi_of_match[] = {
379+
static const __maybe_unused struct of_device_id rx6110_spi_of_match[] = {
380380
{ .compatible = "epson,rx6110" },
381381
{ },
382382
};

0 commit comments

Comments
 (0)