diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-16 07:03:26 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-02-06 11:38:46 +0800 |
commit | b0265429469dde300e3dc2a2c1dce789014c7208 (patch) | |
tree | 07540151d7ed265e4a90448e9dbba7051f986d8c /common/iomux.c | |
parent | 7cbaddd4ad8ea760fd9c055f850a21298315d1d9 (diff) | |
download | u-boot-b0265429469dde300e3dc2a2c1dce789014c7208.tar.gz |
console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL
CONFIG_CONSOLE_MUX and CONFIG_SYS_CONSOLE_IS_IN_ENV are not applicable
for SPL. Update the console code to use CONFIG_IS_ENABLED(), so that these
options will be inactive in SPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common/iomux.c')
-rw-r--r-- | common/iomux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/iomux.c b/common/iomux.c index 3d8d00b448..0e4e6803e7 100644 --- a/common/iomux.c +++ b/common/iomux.c @@ -10,7 +10,7 @@ #include <serial.h> #include <malloc.h> -#ifdef CONFIG_CONSOLE_MUX +#if CONFIG_IS_ENABLED(CONSOLE_MUX) void iomux_printdevs(const int console) { int i; @@ -145,4 +145,4 @@ int iomux_doenv(const int console, const char *arg) free(cons_set); return 0; } -#endif /* CONFIG_CONSOLE_MUX */ +#endif /* CONSOLE_MUX */ |