summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-02-11 18:09:38 +0300
committerTom Rini <trini@konsulko.com>2021-02-16 19:16:07 +0300
commit20a7d351486f9d5afde55ffd9d8331e765add42d (patch)
treefa69ddfccf3f60056b142ecc3b6fd929ab59c1b2 /common
parent7b9ca3f89c340f3a195e17ccdd7d512e0884e555 (diff)
downloadu-boot-20a7d351486f9d5afde55ffd9d8331e765add42d.tar.xz
console: Set console device counter in console_devices_set()
console_devices_set() missed the console device counter to be set correctly. Fixes: 45375adc9799 ("console: add function console_devices_set") Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'common')
-rw-r--r--common/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index b1afb650ed..9064a6c230 100644
--- a/common/console.c
+++ b/common/console.c
@@ -236,6 +236,7 @@ int cd_count[MAX_FILES];
static void __maybe_unused console_devices_set(int file, struct stdio_dev *dev)
{
console_devices[file][0] = dev;
+ cd_count[file] = 1;
}
/**