mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ide: pass IDEBus to the restart_cb
Pass the containing IDEBus to the restart_cb instead of the more specific BMDMAState child. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1424708286-16483-6-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
2745df813d
commit
d34fceda8f
2 changed files with 6 additions and 6 deletions
|
@ -2332,7 +2332,7 @@ static const IDEDMAOps ide_dma_nop_ops = {
|
|||
|
||||
void ide_register_restart_cb(IDEBus *bus)
|
||||
{
|
||||
qemu_add_vm_change_state_handler(bus->dma->ops->restart_cb, bus->dma);
|
||||
qemu_add_vm_change_state_handler(bus->dma->ops->restart_cb, bus);
|
||||
}
|
||||
|
||||
static IDEDMA ide_dma_nop = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue