console: set default console_device devname
Some commands (loadb/x/y) rely on console_get_by_name, which searches the list
of console devices based on console_device->devname. However, some serial
drivers do not set devname, meaning that their respective console_devices can
never be found. During console_register, ensure that a default devname is set
if one is not already explicitly set.

Signed-off-by: David Dgien <dgienda125@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cd6fe5b commit b330984ac85f9057846b20361dbf083c2d43547c
@David Dgien David Dgien authored on 8 Sep 2019
Sascha Hauer committed on 9 Sep 2019
Showing 1 changed file
View
common/console.c