From: Bin Meng Date: Sun, 26 Sep 2021 10:50:02 +0000 (+0800) Subject: hw/char: shakti_uart: Register device in 'input' category X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5515ff162e8c20bfe907e21b2a3b9bed12a8ef67;p=qemu.git hw/char: shakti_uart: Register device in 'input' category The category of shakti_uart device is not set. Put it into the 'input' category. Signed-off-by: Bin Meng Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20210926105003.2716-2-bmeng.cn@gmail.com Signed-off-by: Alistair Francis --- diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c index 6870821325..98b142c7df 100644 --- a/hw/char/shakti_uart.c +++ b/hw/char/shakti_uart.c @@ -168,6 +168,7 @@ static void shakti_uart_class_init(ObjectClass *klass, void *data) dc->reset = shakti_uart_reset; dc->realize = shakti_uart_realize; device_class_set_props(dc, shakti_uart_properties); + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); } static const TypeInfo shakti_uart_info = {