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/lsi53c895a.c | |
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/lsi53c895a.c')
-rw-r--r-- | hw/lsi53c895a.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 638332e188..9a7ffe3f42 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -2131,7 +2131,6 @@ static void lsi_class_init(ObjectClass *klass, void *data) k->device_id = PCI_DEVICE_ID_LSI_53C895A; k->class_id = PCI_CLASS_STORAGE_SCSI; k->subsystem_id = 0x1000; - dc->alias = "lsi"; dc->reset = lsi_scsi_reset; dc->vmsd = &vmstate_lsi_scsi; } @@ -2146,7 +2145,6 @@ static TypeInfo lsi_info = { static void lsi53c895a_register_devices(void) { type_register_static(&lsi_info); - type_register_static_alias(&lsi_info, "lsi"); } device_init(lsi53c895a_register_devices); |