diff options
author | Bernhard Beschow | 2022-10-22 17:04:33 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2022-10-31 11:32:07 +0100 |
commit | bb2e9b1d660a4bf11c169388b577c851c51ffe24 (patch) | |
tree | bbbc7e9c17dcbda313636229eed7f8be13f6804a /hw/ide | |
parent | hw/isa/piix4: Rename wrongly named method (diff) | |
download | qemu-bb2e9b1d660a4bf11c169388b577c851c51ffe24.tar.gz qemu-bb2e9b1d660a4bf11c169388b577c851c51ffe24.tar.xz qemu-bb2e9b1d660a4bf11c169388b577c851c51ffe24.zip |
hw/ide/piix: Introduce TYPE_ macros for PIIX IDE controllers
Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221022150508.26830-9-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/piix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c index de1f4f0efb..267dbf37db 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -36,6 +36,7 @@ #include "sysemu/blockdev.h" #include "sysemu/dma.h" +#include "hw/ide/piix.h" #include "hw/ide/pci.h" #include "trace.h" @@ -202,7 +203,7 @@ static void piix3_ide_class_init(ObjectClass *klass, void *data) } static const TypeInfo piix3_ide_info = { - .name = "piix3-ide", + .name = TYPE_PIIX3_IDE, .parent = TYPE_PCI_IDE, .class_init = piix3_ide_class_init, }; @@ -224,7 +225,7 @@ static void piix4_ide_class_init(ObjectClass *klass, void *data) } static const TypeInfo piix4_ide_info = { - .name = "piix4-ide", + .name = TYPE_PIIX4_IDE, .parent = TYPE_PCI_IDE, .class_init = piix4_ide_class_init, }; |