summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-04-03 18:06:32 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-05 08:42:24 +0200
commit6587b56678354f69f9b90edbe7b0dec2f6de5349 (patch)
tree51ef7f6796a2063ad9038a030aa4ca1662929143 /drivers/rtc
parent8aeda692f6ee3585f000e4e42129f5dd4aff1441 (diff)
downloadbarebox-6587b56678354f69f9b90edbe7b0dec2f6de5349.tar.gz
barebox-6587b56678354f69f9b90edbe7b0dec2f6de5349.tar.xz
ds1307: Fix a bug in probe()
Add missing "~" to bit clearing operation. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds1307.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index e2d561b96f..a1cfed6795 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]);
}