Commit a27c7bf6 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: rx8025: fix rx8025_init_client()

rx8025_init_client is modifying ctrl[0] and writing it to RX8025_REG_CTRL2
but ctrl[0] is actually RX8025_REG_CTRL1.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 8a06513d
...@@ -263,7 +263,7 @@ static int rx8025_init_client(struct i2c_client *client) ...@@ -263,7 +263,7 @@ static int rx8025_init_client(struct i2c_client *client)
need_clear = 1; need_clear = 1;
if (need_clear) { if (need_clear) {
ctrl2 = ctrl[0]; ctrl2 = ctrl[1];
ctrl2 &= ~(RX8025_BIT_CTRL2_PON | RX8025_BIT_CTRL2_VDET | ctrl2 &= ~(RX8025_BIT_CTRL2_PON | RX8025_BIT_CTRL2_VDET |
RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG |
RX8025_BIT_CTRL2_DAFG); RX8025_BIT_CTRL2_DAFG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment