From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 2/3] ds1307: Fix a bug in probe()
Date: Sun, 3 Apr 2016 18:06:32 -0700 [thread overview]
Message-ID: <1459731993-14807-2-git-send-email-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <1459731993-14807-1-git-send-email-andrew.smirnov@gmail.com>
Add missing "~" to bit clearing operation.
Signed-off-by: Andrey Smirnov <andrew.smirnov@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2016-04-04 1:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 1:06 [PATCH 1/3] rtc: abracon: Check obtianed time for validity Andrey Smirnov
2016-04-04 1:06 ` Andrey Smirnov [this message]
2016-04-04 1:06 ` [PATCH 3/3] ds1307: Configure ds1341 for lowest power mode Andrey Smirnov
2016-04-05 6:43 ` [PATCH 1/3] rtc: abracon: Check obtianed time for validity Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459731993-14807-2-git-send-email-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox