summaryrefslogtreecommitdiffstats
path: root/hw/ssd0323.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/ssd0323.c
parent57b452a8487df30d084ce2b56a993ba7473469e3 (diff)
downloadhqemu-074f2fff798cb8f9588080b740dc356217a24720.zip
hqemu-074f2fff798cb8f9588080b740dc356217a24720.tar.gz
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/ssd0323.c')
-rw-r--r--hw/ssd0323.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ssd0323.c b/hw/ssd0323.c
index c083d9a..319ab87 100644
--- a/hw/ssd0323.c
+++ b/hw/ssd0323.c
@@ -339,13 +339,15 @@ static void ssd0323_init(SSISlave *dev)
}
static SSISlaveInfo ssd0323_info = {
+ .qdev.name = "ssd0323",
+ .qdev.size = sizeof(ssd0323_state),
.init = ssd0323_init,
.transfer = ssd0323_transfer
};
static void ssd03232_register_devices(void)
{
- ssi_register_slave("ssd0323", sizeof(ssd0323_state), &ssd0323_info);
+ ssi_register_slave(&ssd0323_info);
}
device_init(ssd03232_register_devices)
OpenPOWER on IntegriCloud