From: Andy Shevchenko Date: Thu, 11 Feb 2021 15:09:38 +0000 (+0200) Subject: console: Set console device counter in console_devices_set() X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=20a7d351486f9d5afde55ffd9d8331e765add42d;p=u-boot.git 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 Signed-off-by: Andy Shevchenko --- 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; } /**