]> Git Repo - qemu.git/commitdiff
e1000: use alias for default model
authorJason Wang <[email protected]>
Mon, 28 Sep 2015 05:37:26 +0000 (13:37 +0800)
committerJason Wang <[email protected]>
Mon, 12 Oct 2015 05:19:29 +0000 (13:19 +0800)
Instead of duplicating the "e1000-82540em" device model as "e1000",
make the latter an alias for the former.

Cc: Markus Armbruster <[email protected]>
Signed-off-by: Jason Wang <[email protected]
Reviewed-by: Markus Armbruster <[email protected]>
hw/net/e1000.c
qdev-monitor.c

index 09c9e9d53b0bf534225b22728f8e835e72520f0d..910de3a7bebb932db77f545ed75a9f2e9af72b68 100644 (file)
@@ -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)
index eb7aef2c81390221a044bfd08f2224b6463495c9..00f6303671ce05d8ec8032a7a26cd22496311ce5 100644 (file)
@@ -50,6 +50,7 @@ static const QDevAlias qdev_alias_table[] = {
     { "lsi53c895a", "lsi" },
     { "ich9-ahci", "ahci" },
     { "kvm-pci-assign", "pci-assign" },
+    { "e1000", "e1000-82540em" },
     { }
 };
 
This page took 0.032282 seconds and 4 git commands to generate.