commit | 5c66e1e0b79bd63dcdfbc03b80823522643a1f14 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Tue Aug 04 11:24:33 2015 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Sat Sep 05 13:19:12 2015 +0200 |
tree | 97ede0429a12917619adb2321983817d096763a9 | |
parent | 4b33d36b670e7166e8a082e050bfb241ba65271f [diff] |
rtc: rx8025: fix RX8025_BIT_CTRL2_CTFG initialization RX8025_BIT_CTRL2_CTFG was set to 0 only when it was already 0. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index f9b86b9..f3f1de2 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c
@@ -270,7 +270,7 @@ need_clear = 1; } - if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG)) + if (ctrl[1] & RX8025_BIT_CTRL2_CTFG) need_clear = 1; if (need_clear) {