aboutsummaryrefslogtreecommitdiff
path: root/hw/stellaris.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-06-10 09:41:42 +0200
committerPaul Brook <paul@codesourcery.com>2009-06-11 13:47:36 +0100
commit074f2fff798cb8f9588080b740dc356217a24720 (patch)
tree4a7267d64bbe8d679627699b6545c9fcd23bb270 /hw/stellaris.c
parent57b452a8487df30d084ce2b56a993ba7473469e3 (diff)
qdev: move name+size into DeviceInfo (v2)
Rationale: move device information from code to data structures. v2: Adapt the drivers missed in the first version. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/stellaris.c')
-rw-r--r--hw/stellaris.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/stellaris.c b/hw/stellaris.c
index 38b9830e27..bf339e8aad 100644
--- a/hw/stellaris.c
+++ b/hw/stellaris.c
@@ -1444,6 +1444,8 @@ static void stellaris_machine_init(void)
machine_init(stellaris_machine_init);
static SSISlaveInfo stellaris_ssi_bus_info = {
+ .qdev.name = "evb6965-ssi",
+ .qdev.size = sizeof(stellaris_ssi_bus_state),
.init = stellaris_ssi_bus_init,
.transfer = stellaris_ssi_bus_transfer
};
@@ -1456,8 +1458,7 @@ static void stellaris_register_devices(void)
stellaris_gptm_init);
sysbus_register_dev("stellaris-adc", sizeof(stellaris_adc_state),
stellaris_adc_init);
- ssi_register_slave("evb6965-ssi", sizeof(stellaris_ssi_bus_state),
- &stellaris_ssi_bus_info);
+ ssi_register_slave(&stellaris_ssi_bus_info);
}
device_init(stellaris_register_devices)