From 6acbe4c6f18e7de00481ff30574262b58526de45 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 22 Dec 2011 11:05:00 -0600 Subject: qdev: remove baked in notion of aliases (v2) Limit them to the device_add functionality. Device aliases were a hack based on the fact that virtio was modeled the wrong way. The mechanism for aliasing is very limited in that only one alias can exist for any device. We have to support it for the purposes of compatibility but we only need to support it in device_add so restrict it to that piece of code. Signed-off-by: Anthony Liguori --- v1 -> v2 - Use a table for aliases (Paolo) --- hw/ide/ich.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/ide') diff --git a/hw/ide/ich.c b/hw/ide/ich.c index 0e819f6bd1..5cdaa990ea 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -158,7 +158,6 @@ static void ich_ahci_class_init(ObjectClass *klass, void *data) k->device_id = PCI_DEVICE_ID_INTEL_82801IR; k->revision = 0x02; k->class_id = PCI_CLASS_STORAGE_SATA; - dc->alias = "ahci"; dc->vmsd = &vmstate_ahci; } @@ -172,6 +171,5 @@ static TypeInfo ich_ahci_info = { static void ich_ahci_register(void) { type_register_static(&ich_ahci_info); - type_register_static_alias(&ich_ahci_info, "ahci"); } device_init(ich_ahci_register); -- cgit v1.2.3