From fa07f30fc4d3624f22f67c01c6ad684b4c042a91 Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Fri, 29 May 2020 14:51:12 +0200 Subject: serial: stm: set linux_console_name We set the linux_console_name so for this uart the linux.bootargs.console will be properly set. Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer --- drivers/serial/stm-serial.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/serial') diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c index ea482415ce..a2c3dcf56e 100644 --- a/drivers/serial/stm-serial.c +++ b/drivers/serial/stm-serial.c @@ -159,6 +159,7 @@ static int stm_serial_probe(struct device_d *dev) cdev->flush = stm_serial_flush; cdev->setbrg = stm_serial_setbaudrate; cdev->dev = dev; + cdev->linux_console_name = "ttyAMA"; dev->priv = priv; iores = dev_request_mem_resource(dev, 0); -- cgit v1.2.3