]> Git Repo - qemu.git/commitdiff
hw/char: sifive_uart: Register device in 'input' category
authorBin Meng <[email protected]>
Sun, 26 Sep 2021 10:50:03 +0000 (18:50 +0800)
committerAlistair Francis <[email protected]>
Wed, 6 Oct 2021 22:41:33 +0000 (08:41 +1000)
The category of sifive_uart device is not set. Put it into the
'input' category.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 20210926105003[email protected]
Signed-off-by: Alistair Francis <[email protected]>
hw/char/sifive_uart.c

index 278e21c434c4151ac5fa62845363b15d2dc909e0..1c75f792b352881886ed737a8c46d73f0536ddd8 100644 (file)
@@ -248,6 +248,7 @@ static void sifive_uart_class_init(ObjectClass *oc, void *data)
     rc->phases.enter = sifive_uart_reset_enter;
     rc->phases.hold  = sifive_uart_reset_hold;
     device_class_set_props(dc, sifive_uart_properties);
+    set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
 }
 
 static const TypeInfo sifive_uart_info = {
This page took 0.027853 seconds and 4 git commands to generate.