diff options
| author | Tom Rini <[email protected]> | 2021-07-28 18:51:16 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-07-28 18:51:16 -0400 |
| commit | bbcacdf4cd23f2e5deb9ef916096c956c955243d (patch) | |
| tree | 3065b9346139a0f30bc3f9e77f1ee27e8fba3fdd /cmd/date.c | |
| parent | 22ecb12132a2de80a08654f139ff978176034c38 (diff) | |
| parent | 537892065ac1428a48193d4b0fa7bf827e8d0d44 (diff) | |
Merge branch '2021-07-28-build-improvements'
- Assorted Makefile cleanups
- A few code / build cleanups
Diffstat (limited to 'cmd/date.c')
| -rw-r--r-- | cmd/date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/date.c b/cmd/date.c index 0e118947531..e377cfe165e 100644 --- a/cmd/date.c +++ b/cmd/date.c @@ -46,7 +46,7 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc, printf("Cannot find RTC: err=%d\n", rcode); return CMD_RET_FAILURE; } -#elif defined(CONFIG_SYS_I2C) +#elif defined(CONFIG_SYS_I2C_LEGACY) old_bus = i2c_get_bus_num(); i2c_set_bus_num(CONFIG_SYS_RTC_BUS_NUM); #else @@ -119,7 +119,7 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc, } /* switch back to original I2C bus */ -#ifdef CONFIG_SYS_I2C +#ifdef CONFIG_SYS_I2C_LEGACY i2c_set_bus_num(old_bus); #elif !defined(CONFIG_DM_RTC) I2C_SET_BUS(old_bus); |
