aboutsummaryrefslogtreecommitdiff
path: root/cmd/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/date.c')
-rw-r--r--cmd/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/date.c b/cmd/date.c
index 0e2dfbc4fc2..58505e6e1d3 100644
--- a/cmd/date.c
+++ b/cmd/date.c
@@ -51,10 +51,10 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc,
}
#elif CONFIG_IS_ENABLED(SYS_I2C_LEGACY)
old_bus = i2c_get_bus_num();
- i2c_set_bus_num(CONFIG_SYS_RTC_BUS_NUM);
+ i2c_set_bus_num(CFG_SYS_RTC_BUS_NUM);
#else
old_bus = I2C_GET_BUS();
- I2C_SET_BUS(CONFIG_SYS_RTC_BUS_NUM);
+ I2C_SET_BUS(CFG_SYS_RTC_BUS_NUM);
#endif
switch (argc) {