[PATCH 2/3] ds1307: Fix a bug in probe()
Andrey Smirnov
andrew.smirnov at gmail.com
Sun Apr 3 18:06:32 PDT 2016
Add missing "~" to bit clearing operation.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
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
More information about the barebox
mailing list