OSDN Git Service

rtc: pcf85063: fix clearing bits in pcf85063_start_clock
authorMichael McCormick <michael.mccormick@enatel.net>
Wed, 21 Feb 2018 22:29:24 +0000 (11:29 +1300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:57 +0000 (14:20 +0100)
Bit clear operation was missing ~

Signed-off-by: Michael McCormick <michael.mccormick@enatel.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf85063.c

index 3558433..49bcbb3 100644 (file)
@@ -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) {