summaryrefslogtreecommitdiff
path: root/drivers/rtc/ds3231.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/ds3231.c')
-rw-r--r--drivers/rtc/ds3231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c
index da8a3e63f05..ef033588a9b 100644
--- a/drivers/rtc/ds3231.c
+++ b/drivers/rtc/ds3231.c
@@ -177,13 +177,13 @@ void rtc_reset (void)
static
uchar rtc_read (uchar reg)
{
- return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+ return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
}
static void rtc_write (uchar reg, uchar val)
{
- i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+ i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
}
static unsigned bcd2bin (uchar n)