mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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>
This commit is contained in:
parent
65d211b307
commit
051abf5524
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue