aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-17 17:35:10 +0100
committerMarkus Armbruster <armbru@redhat.com>2016-01-13 11:58:58 +0100
commit84a3a53cf61ef691478bd91afa455c801696053c (patch)
tree72425d317b2f9c0ca660ad73d84568695c7bf743 /hw/misc
parentc525436e69bb7e74ca96982a40b8ead037186049 (diff)
downloadqemu-84a3a53cf61ef691478bd91afa455c801696053c.zip
qemu-84a3a53cf61ef691478bd91afa455c801696053c.tar.gz
qemu-84a3a53cf61ef691478bd91afa455c801696053c.tar.bz2
omap: Don't use hw_error() in device init() methods
Device init() methods aren't supposed to call hw_error(), they should report the error and fail cleanly. Do that. The errors are all device misconfiguration. All callers use qdev_init_nofail(), so this patch merely converts hw_error() crashes into &error_abort crashes. Improvement, because now it crashes closer to where the misconfiguration bug would be, and a few more bad examples of hw_error() use are gone. Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Markus Armbruster <armbru@pond.sub.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <1450370121-5768-3-git-send-email-armbru@redhat.com>
Diffstat (limited to 'hw/misc')
0 files changed, 0 insertions, 0 deletions