diff options
author | Michael McCormick <michael.mccormick@enatel.net> | 2018-02-22 01:29:24 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 16:20:57 +0300 |
commit | 051abf552468d4b80c0ccf8c69667bfab672cec0 (patch) | |
tree | dcb107b35250b25b13e367e5cee6e2a20dad8c53 /drivers/rtc/rtc-pcf85063.c | |
parent | 65d211b307655e352385bfdee7aa9754d5acb66e (diff) | |
download | linux-051abf552468d4b80c0ccf8c69667bfab672cec0.tar.xz |
rtc: pcf85063: fix clearing bits in pcf85063_start_clock
Bit clear operation was missing ~
Signed-off-by: Michael McCormick <michael.mccormick@enatel.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85063.c')
-rw-r--r-- | drivers/rtc/rtc-pcf85063.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c index 3558433e8787..49bcbb3d4a69 100644 --- a/drivers/rtc/rtc-pcf85063.c +++ b/drivers/rtc/rtc-pcf85063.c @@ -70,7 +70,7 @@ static int pcf85063_start_clock(struct i2c_client *client, u8 ctrl1) s32 ret; /* start the clock */ - ctrl1 &= PCF85063_REG_CTRL1_STOP; + ctrl1 &= ~PCF85063_REG_CTRL1_STOP; ret = i2c_smbus_write_byte_data(client, PCF85063_REG_CTRL1, ctrl1); if (ret < 0) { |