sandbox: fix registering multiple consoles
Consoles need to be registered with the "console" device name so that
they are probed by the correct driver. The barebox_register_console()
was already forcing this as it was overwriting the name that was being
passed as argument, but it was failing to provide a unique id for
each new console, so the underlying register_device() would just
return an error when wanting to re-register a device with device name
"console" and id 0.

We remove the unused name parameter from barebox_register_console() as
it is really nowhere used, and also specify DEVICE_ID_DYNAMIC as id,
so that a new unique device id is given to each newly registered
console device.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 44ae52f commit a8de37dbef75665b6bdd98e9ce54f9fb20484785
@Aleksander Morgado Aleksander Morgado authored on 31 May 2017
Sascha Hauer committed on 1 Jun 2017
Showing 4 changed files
View
arch/sandbox/board/console.c
View
arch/sandbox/mach-sandbox/include/mach/linux.h
View
arch/sandbox/os/common.c
View
drivers/serial/linux_console.c