macio: move DBDMA_init from instance_init to realize
commitdb97d9d886f7e16571e5eb242d814b6d345affb2
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 08:59:52 +0000 (1 10:59 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 28 Oct 2015 19:49:54 +0000 (28 14:49 -0500)
tree6d25d90674e35bcf9f660075ff22a4b5e703537e
parent243b80c9c5e8be52c141ff976aecd40667aebd61
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>
(cherry picked from commit c7104402353bf32ac1d3a276e3619a20e910506b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/misc/macio/macio.c