Skip to content

Commit 2bbf3a9

Browse files
ku-souravvivier
authored andcommitted
hw: sd: set category of the sd memory card
Sets the category of the sd memory card as DEVICE_CATEGORY_STORAGE. Devices should be assigned to one of DEVICE_CATEGORY_XXXX. Signed-off-by: kumar sourav <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent cbe9ed7 commit 2bbf3a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/sd/sd.c

+1
Original file line numberDiff line numberDiff line change
@@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data)
21212121
dc->vmsd = &sd_vmstate;
21222122
dc->reset = sd_reset;
21232123
dc->bus_type = TYPE_SD_BUS;
2124+
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
21242125

21252126
sc->set_voltage = sd_set_voltage;
21262127
sc->get_dat_lines = sd_get_dat_lines;

0 commit comments

Comments
 (0)