diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-06-10 09:41:42 +0200 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-06-11 13:47:36 +0100 |
commit | 074f2fff798cb8f9588080b740dc356217a24720 (patch) | |
tree | 4a7267d64bbe8d679627699b6545c9fcd23bb270 /hw/ssi-sd.c | |
parent | 57b452a8487df30d084ce2b56a993ba7473469e3 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ssi-sd.c b/hw/ssi-sd.c index 3e78bd2ac..4e67f143c 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) |