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>
This commit is contained in:
parent
34229c46a7
commit
5515ff162e
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user