macio: move DBDMA_init from instance_init to realize
commitc7104402353bf32ac1d3a276e3619a20e910506b
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 08:59:52 +0000 (1 10:59 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2015 13:25:57 +0000 (9 15:25 +0200)
treec216891fada4c9b837f2b4d3df01d3dbe84850d7
parent81e0ab48dda611e9571dc2e166840205a4208567
macio: move DBDMA_init from instance_init to realize

DBDMA_init is not idempotent, and calling it from instance_init
breaks a simple object_new/object_unref pair.  Work around this,
pending qdev-ification of DBDMA, by moving the call to realize.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1443689999-12182-4-git-send-email-armbru@redhat.com>
hw/misc/macio/macio.c