diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-22 11:05:00 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 10:41:07 -0600 |
commit | 6acbe4c6f18e7de00481ff30574262b58526de45 (patch) | |
tree | c3d9c37baaa10d2b0d14973e6cfa452914129bd7 /hw/ide | |
parent | d307af795d9fb25680339288a10c9e297e102826 (diff) |
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 <aliguori@us.ibm.com>
---
v1 -> v2
- Use a table for aliases (Paolo)
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/ich.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |