Commit 051abf55 authored by Michael McCormick's avatar Michael McCormick Committed by Alexandre Belloni

rtc: pcf85063: fix clearing bits in pcf85063_start_clock

Bit clear operation was missing ~
Signed-off-by: default avatarMichael McCormick <michael.mccormick@enatel.net>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 65d211b3
...@@ -70,7 +70,7 @@ static int pcf85063_start_clock(struct i2c_client *client, u8 ctrl1) ...@@ -70,7 +70,7 @@ static int pcf85063_start_clock(struct i2c_client *client, u8 ctrl1)
s32 ret; s32 ret;
/* start the clock */ /* start the clock */
ctrl1 &= PCF85063_REG_CTRL1_STOP; ctrl1 &= ~PCF85063_REG_CTRL1_STOP;
ret = i2c_smbus_write_byte_data(client, PCF85063_REG_CTRL1, ctrl1); ret = i2c_smbus_write_byte_data(client, PCF85063_REG_CTRL1, ctrl1);
if (ret < 0) { if (ret < 0) {
......
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