This makes it easier to reference it without having to look at the
device/driver behind it.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/serial/serial_semihosting.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/serial/serial_semihosting.c 
b/drivers/serial/serial_semihosting.c
index 02d2ade367d6..c4929ad08f1a 100644
--- a/drivers/serial/serial_semihosting.c
+++ b/drivers/serial/serial_semihosting.c
@@ -17,6 +17,8 @@ static int smh_serial_probe(struct device *dev)
 
        cdev->dev = dev;
        cdev->putc = smh_serial_putc;
+       cdev->devname = "semihosting";
+       cdev->devid = DEVICE_ID_SINGLE;
 
        return console_register(cdev);
 }
-- 
2.47.3


Reply via email to