diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2018-07-27 11:10:15 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-27 11:27:40 -0400 |
commit | 8856541557f3626beec43aa0821b2e0f031f0153 (patch) | |
tree | 3cd67354513f2d3a313d84b7c01564ac6d5b1d15 | |
parent | c842697c741e9dbf825e07d4c2724685d6464bd0 (diff) |
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: ec623ff014c4 ("rtc: sh: remove dead code")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-sh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index abbce362f4df..0fbd36e2afa6 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c | |||
@@ -142,7 +142,6 @@ static int __sh_rtc_alarm(struct sh_rtc *rtc) | |||
142 | 142 | ||
143 | static int __sh_rtc_periodic(struct sh_rtc *rtc) | 143 | static int __sh_rtc_periodic(struct sh_rtc *rtc) |
144 | { | 144 | { |
145 | struct rtc_device *rtc_dev = rtc->rtc_dev; | ||
146 | unsigned int tmp, pending; | 145 | unsigned int tmp, pending; |
147 | 146 | ||
148 | tmp = readb(rtc->regbase + RCR2); | 147 | tmp = readb(rtc->regbase + RCR2); |