diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-17 17:35:10 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-01-13 11:58:58 +0100 |
commit | 84a3a53cf61ef691478bd91afa455c801696053c (patch) | |
tree | 72425d317b2f9c0ca660ad73d84568695c7bf743 /hw/misc | |
parent | c525436e69bb7e74ca96982a40b8ead037186049 (diff) | |
download | qemu-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