summaryrefslogtreecommitdiff
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
commit242990d6b1f7d84d1024e9e04ca0a1b64bb5aa3f (patch)
tree4a7267d64bbe8d679627699b6545c9fcd23bb270 /hw/ssi-sd.c
parent1fadb93601e45d9a56cf78d24f26cc41c33320d2 (diff)
downloadqemu-242990d6b1f7d84d1024e9e04ca0a1b64bb5aa3f.tar.gz
qemu-242990d6b1f7d84d1024e9e04ca0a1b64bb5aa3f.tar.bz2
qemu-242990d6b1f7d84d1024e9e04ca0a1b64bb5aa3f.zip
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)