Skip to content

Commit 7c8eae4

Browse files
zbalatonphilmd
authored andcommitted
via-ide: Set user_creatable to false
This model only works as a function of the via superio chip not as a standalone PCI device. Signed-off-by: BALATON Zoltan <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent cfddceb commit 7c8eae4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hw/ide/via.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ static void via_ide_class_init(ObjectClass *klass, void *data)
217217

218218
dc->reset = via_ide_reset;
219219
dc->vmsd = &vmstate_ide_pci;
220+
/* Reason: only works as function of VIA southbridge */
221+
dc->user_creatable = false;
222+
220223
k->realize = via_ide_realize;
221224
k->exit = via_ide_exitfn;
222225
k->vendor_id = PCI_VENDOR_ID_VIA;

0 commit comments

Comments
 (0)