diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-08-04 04:46:22 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-09-05 07:19:12 -0400 |
commit | a27c7bf657cb4ab893328359b66a584251be6cac (patch) | |
tree | f8ff725990e658808c4a105a883e2889a292a3c3 /drivers/rtc | |
parent | 8a06513df55ef10baf80f55d13786eb29efa4fa6 (diff) |
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-rx8025.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index ab5fb4fe2a83..22ce08d6e807 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c | |||
@@ -263,7 +263,7 @@ static int rx8025_init_client(struct i2c_client *client) | |||
263 | need_clear = 1; | 263 | need_clear = 1; |
264 | 264 | ||
265 | if (need_clear) { | 265 | if (need_clear) { |
266 | ctrl2 = ctrl[0]; | 266 | ctrl2 = ctrl[1]; |
267 | ctrl2 &= ~(RX8025_BIT_CTRL2_PON | RX8025_BIT_CTRL2_VDET | | 267 | ctrl2 &= ~(RX8025_BIT_CTRL2_PON | RX8025_BIT_CTRL2_VDET | |
268 | RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | | 268 | RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | |
269 | RX8025_BIT_CTRL2_DAFG); | 269 | RX8025_BIT_CTRL2_DAFG); |