summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rx6110.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2022-12-11 22:57:55 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-12-11 23:06:43 +0100
commit103c14db61a24cc0cd344dc5d93d264a36687c35 (patch)
tree605da624b576f95f62f2f977ac941bb9696d1265 /drivers/rtc/rtc-rx6110.c
parent2e830ccc21eb67a4c2490279d907e5e9199e5156 (diff)
downloadlinux-103c14db61a24cc0cd344dc5d93d264a36687c35.tar.gz
linux-103c14db61a24cc0cd344dc5d93d264a36687c35.tar.bz2
linux-103c14db61a24cc0cd344dc5d93d264a36687c35.zip
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 <lkp@intel.com> Link: https://lore.kernel.org/r/20221211215756.54002-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rx6110.c')
-rw-r--r--drivers/rtc/rtc-rx6110.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c
index cc634558b928..76a49838014b 100644
--- a/drivers/rtc/rtc-rx6110.c
+++ b/drivers/rtc/rtc-rx6110.c
@@ -376,7 +376,7 @@ static const struct spi_device_id rx6110_spi_id[] = {
};
MODULE_DEVICE_TABLE(spi, rx6110_spi_id);
-static const struct of_device_id rx6110_spi_of_match[] = {
+static const __maybe_unused struct of_device_id rx6110_spi_of_match[] = {
{ .compatible = "epson,rx6110" },
{ },
};