mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
4b33d36b67
commit
5c66e1e0b7
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ static int rx8025_init_client(struct i2c_client *client)
|
||||||
need_clear = 1;
|
need_clear = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG))
|
if (ctrl[1] & RX8025_BIT_CTRL2_CTFG)
|
||||||
need_clear = 1;
|
need_clear = 1;
|
||||||
|
|
||||||
if (need_clear) {
|
if (need_clear) {
|
||||||
|
|
Loading…
Reference in a new issue