From: Alexandre Belloni Date: Tue, 4 Aug 2015 09:24:33 +0000 (+0200) Subject: rtc: rx8025: fix RX8025_BIT_CTRL2_CTFG initialization X-Git-Tag: firefly_0821_release~176^2~1112^2~27 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5c66e1e0b79bd63dcdfbc03b80823522643a1f14;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index f9b86b92943f..f3f1de26c228 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c @@ -270,7 +270,7 @@ static int rx8025_init_client(struct i2c_client *client) need_clear = 1; } - if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG)) + if (ctrl[1] & RX8025_BIT_CTRL2_CTFG) need_clear = 1; if (need_clear) {