Add missing "~" to bit clearing operation. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- drivers/rtc/rtc-ds1307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index e2d561b..a1cfed6 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -338,7 +338,7 @@ static int ds1307_probe(struct device_d *dev) ECLK bit set to 0 */ if (ds1307->type == ds_1341) { - ds1307->regs[1] &= DS1341_BIT_ECLK; + ds1307->regs[1] &= ~DS1341_BIT_ECLK; i2c_smbus_write_byte_data(client, DS1337_REG_STATUS, ds1307->regs[1]); } -- 2.5.5 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox