diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2021-09-26 18:50:02 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2021-10-07 08:41:33 +1000 |
commit | 5515ff162e8c20bfe907e21b2a3b9bed12a8ef67 (patch) | |
tree | b1d284a123afb23a2caf6ce2907123c36c1b0c5d /hw | |
parent | 34229c46a721b2acf3cc1c1af3324f7468852330 (diff) | |
download | qemu-5515ff162e8c20bfe907e21b2a3b9bed12a8ef67.zip qemu-5515ff162e8c20bfe907e21b2a3b9bed12a8ef67.tar.gz qemu-5515ff162e8c20bfe907e21b2a3b9bed12a8ef67.tar.bz2 |
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 <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210926105003.2716-2-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/char/shakti_uart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c index 6870821..98b142c 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 = { |