Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/rtc/rtc-rx8025.c
··· 270 270 need_clear = 1; 271 271 } 272 272 273 - if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG)) 273 + if (ctrl[1] & RX8025_BIT_CTRL2_CTFG) 274 274 need_clear = 1; 275 275 276 276 if (need_clear) {