diff options
author | Jason Wang <jasowang@redhat.com> | 2015-09-28 13:37:26 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2015-10-12 13:19:29 +0800 |
commit | 8304402033e8dbe8e379017d51ed1dd8344f1dce (patch) | |
tree | 65884011062304e3a53bddfcf940fc86af119362 /hw/net/e1000.c | |
parent | c6048f849c7e3f009786df76206e895a69de032c (diff) | |
download | qemu-8304402033e8dbe8e379017d51ed1dd8344f1dce.zip qemu-8304402033e8dbe8e379017d51ed1dd8344f1dce.tar.gz qemu-8304402033e8dbe8e379017d51ed1dd8344f1dce.tar.bz2 |
e1000: use alias for default model
Instead of duplicating the "e1000-82540em" device model as "e1000",
make the latter an alias for the former.
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/net/e1000.c')
-rw-r--r-- | hw/net/e1000.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 09c9e9d..910de3a 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -1647,7 +1647,7 @@ static const TypeInfo e1000_base_info = { static const E1000Info e1000_devices[] = { { - .name = "e1000-82540em", + .name = "e1000", .device_id = E1000_DEV_ID_82540EM, .revision = 0x03, .phy_id2 = E1000_PHY_ID2_8254xx_DEFAULT, @@ -1666,11 +1666,6 @@ static const E1000Info e1000_devices[] = { }, }; -static const TypeInfo e1000_default_info = { - .name = "e1000", - .parent = "e1000-82540em", -}; - static void e1000_register_types(void) { int i; @@ -1688,7 +1683,6 @@ static void e1000_register_types(void) type_register(&type_info); } - type_register_static(&e1000_default_info); } type_init(e1000_register_types) |