qemu-e2k/hw/gpio
Markus Armbruster 84a3a53cf6 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>
2016-01-13 11:58:58 +01:00
..
Makefile.objs i.MX: Add GPIO device 2015-09-14 14:39:49 +01:00
imx_gpio.c i.MX: add support for lower and upper interrupt in GPIO. 2015-12-17 13:37:13 +00:00
max7310.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
mpc8xxx.c PPC: Add MPC8XXX gpio controller 2014-11-04 23:26:12 +01:00
omap_gpio.c omap: Don't use hw_error() in device init() methods 2016-01-13 11:58:58 +01:00
pl061.c pl061: fix wrong calculation of GPIOMIS register 2015-06-02 14:56:25 +01:00
puv3_gpio.c puv3_gpio: QOM cast cleanup 2013-07-29 21:06:57 +02:00
zaurus.c hw/gpio/zaurus: Remove meaningless blank Property 2015-09-11 11:04:03 +03:00