diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-11-15 10:54:58 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-19 09:20:02 +0100 |
commit | 24bb8a7bee5ec3f9669876d206e2aec5f2277c0b (patch) | |
tree | dbd6b0845788b8e53c598aa885a9576bf58d68f4 /drivers/rtc | |
parent | f4a1c832cfa18b558311b3b3d2b80175cedba422 (diff) | |
download | barebox-24bb8a7bee5ec3f9669876d206e2aec5f2277c0b.tar.gz barebox-24bb8a7bee5ec3f9669876d206e2aec5f2277c0b.tar.xz |
rtc: ds1307: Set DS1341_BIT_DOSF in the right register
DS1341_BIT_DOSF is located in DS1337_REG_STATUS, not
DS1337_REG_CONTROL. Fix the code to reflect that.
Also fix "additionale" -> "additional" typo while at it.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index bb597305e5..f1feee4689 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -348,10 +348,10 @@ static int ds1307_probe(struct device_d *dev) ds1307->regs[1] &= ~DS1341_BIT_ECLK; /* - * Let's set additionale RTC bits to + * Let's set additional RTC bits to * facilitate maximum power saving. */ - ds1307->regs[0] |= DS1341_BIT_DOSF; + ds1307->regs[1] |= DS1341_BIT_DOSF; ds1307->regs[0] &= ~DS1341_BIT_EGFIL; i2c_smbus_write_byte_data(client, DS1337_REG_CONTROL, |