diff options
author | Mitja Spes <mitja@lxnav.com> | 2015-09-02 10:02:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 19:26:11 +0200 |
commit | 1a64393e4a48bb45c6b50a557bf719d0c4d01045 (patch) | |
tree | 8c8194eb7253d6f78166f2128596308fc67c3d01 /drivers/rtc | |
parent | 4530473fda002bbcb567419d55f5bc9f7f6541fc (diff) |
rtc: abx80x: fix RTC write bit
commit 5f1b2f77646fc0ef2f36fc554f5722a1381d0892 upstream.
Fix RTC write bit as per application manual
Signed-off-by: Mitja Spes <mitja@lxnav.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-abx80x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c index 4337c3bc6ace..afea84c7a155 100644 --- a/drivers/rtc/rtc-abx80x.c +++ b/drivers/rtc/rtc-abx80x.c @@ -28,7 +28,7 @@ #define ABX8XX_REG_WD 0x07 #define ABX8XX_REG_CTRL1 0x10 -#define ABX8XX_CTRL_WRITE BIT(1) +#define ABX8XX_CTRL_WRITE BIT(0) #define ABX8XX_CTRL_12_24 BIT(6) #define ABX8XX_REG_CFG_KEY 0x1f |