diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-25 21:42:38 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:48 -0500 |
commit | e3936fa574d9fbe241acdc76b5195b048567537e (patch) | |
tree | 51832bf75d2c7677e08e833ce71921cde22ccb9b /hw/lsi53c895a.c | |
parent | pci: use qdev for device destruction. (diff) | |
download | qemu-kvm-e3936fa574d9fbe241acdc76b5195b048567537e.tar.gz qemu-kvm-e3936fa574d9fbe241acdc76b5195b048567537e.tar.bz2 qemu-kvm-e3936fa574d9fbe241acdc76b5195b048567537e.zip |
pci: move unregister from PCIDevice to PCIDeviceInfo
One more cleanup while being at it ;)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r-- | hw/lsi53c895a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 7c4539179..a4d3a5740 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -2174,7 +2174,6 @@ static int lsi_scsi_init(PCIDevice *dev) s->queue = qemu_malloc(sizeof(lsi_queue)); s->queue_len = 1; s->active_commands = 0; - s->dev.unregister = lsi_scsi_uninit; lsi_soft_reset(s); @@ -2189,6 +2188,7 @@ static PCIDeviceInfo lsi_info = { .qdev.alias = "lsi", .qdev.size = sizeof(LSIState), .init = lsi_scsi_init, + .exit = lsi_scsi_uninit, }; static void lsi53c895a_register_devices(void) |