aboutsummaryrefslogtreecommitdiff
path: root/hw/ssi-sd.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/ssi-sd.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/ssi-sd.c')
-rw-r--r--hw/ssi-sd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ssi-sd.c b/hw/ssi-sd.c
index 3e78bd2ac3..4e67f143c3 100644
--- a/hw/ssi-sd.c
+++ b/hw/ssi-sd.c
@@ -241,13 +241,15 @@ static void ssi_sd_init(SSISlave *dev)
}
static SSISlaveInfo ssi_sd_info = {
+ .qdev.name = "ssi-sd",
+ .qdev.size = sizeof(ssi_sd_state),
.init = ssi_sd_init,
.transfer = ssi_sd_transfer
};
static void ssi_sd_register_devices(void)
{
- ssi_register_slave("ssi-sd", sizeof(ssi_sd_state), &ssi_sd_info);
+ ssi_register_slave(&ssi_sd_info);
}
device_init(ssi_sd_register_devices)