Skip to content

Commit 6a03349

Browse files
lbmengalistair23
authored andcommitted
hw/char: sifive_uart: Register device in 'input' category
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: [email protected] Signed-off-by: Alistair Francis <[email protected]>
1 parent 5515ff1 commit 6a03349

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/char/sifive_uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ static void sifive_uart_class_init(ObjectClass *oc, void *data)
248248
rc->phases.enter = sifive_uart_reset_enter;
249249
rc->phases.hold = sifive_uart_reset_hold;
250250
device_class_set_props(dc, sifive_uart_properties);
251+
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
251252
}
252253

253254
static const TypeInfo sifive_uart_info = {

0 commit comments

Comments
 (0)