spapr_vio: Convert to realize()
commit28b07e737eb58f299b066c1c6b3740bb055a2cf9
authorMarkus Armbruster <armbru@redhat.com>
Fri, 27 Feb 2015 10:52:17 +0000 (27 11:52 +0100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 14:00:07 +0000 (9 15:00 +0100)
tree1098375236abebb68267a1e41724b9238ab33533
parente5f6e7327a95bf4c7e9354cd00e03d7ffaf25f8e
spapr_vio: Convert to realize()

Bonus fix: always set an error on failure.  Some failures were silent
before, except for the generic error set by device_realize().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/char/spapr_vty.c
hw/net/spapr_llan.c
hw/nvram/spapr_nvram.c
hw/ppc/spapr_vio.c
hw/scsi/spapr_vscsi.c
include/hw/ppc/spapr_vio.h