Commit 88565415 authored by Anders Roxell's avatar Anders Roxell Committed by Alexandre Belloni

rtc: sh: remove unused variable rtc_dev

When building rtc-sh, rtc_dev isn't used in function __sh_rtc_periodic.
drivers/rtc/rtc-sh.c: In function ‘__sh_rtc_periodic’:
drivers/rtc/rtc-sh.c:146:21: warning: unused variable ‘rtc_dev’ [-Wunused-variable]
  struct rtc_device *rtc_dev = rtc->rtc_dev;
                     ^~~~~~~
Remove the declaration of rtc_dev to dispose the warning.

Fixes: ec623ff0 ("rtc: sh: remove dead code")
Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent c842697c
...@@ -142,7 +142,6 @@ static int __sh_rtc_alarm(struct sh_rtc *rtc) ...@@ -142,7 +142,6 @@ static int __sh_rtc_alarm(struct sh_rtc *rtc)
static int __sh_rtc_periodic(struct sh_rtc *rtc) static int __sh_rtc_periodic(struct sh_rtc *rtc)
{ {
struct rtc_device *rtc_dev = rtc->rtc_dev;
unsigned int tmp, pending; unsigned int tmp, pending;
tmp = readb(rtc->regbase + RCR2); tmp = readb(rtc->regbase + RCR2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment