qemu-e2k/hw/i2c
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
..
bitbang_i2c.c
bitbang_i2c.h
core.c
exynos4210_i2c.c
imx_i2c.c i.MX: Standardize i.MX I2C debug 2015-10-27 15:59:46 +00:00
Makefile.objs i.MX: Add I2C controller emulator 2015-09-07 10:39:30 +01:00
omap_i2c.c omap: Don't use hw_error() in device init() methods 2016-01-13 11:58:58 +01:00
pm_smbus.c
smbus_eeprom.c
smbus_ich9.c
smbus.c
versatile_i2c.c