xemu/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 i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
bitbang_i2c.h i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
core.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
exynos4210_i2c.c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
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 Fix debug print warning 2014-09-02 22:38:16 +04:00
smbus_eeprom.c Fix grammar in comment 2014-04-18 10:33:36 +04:00
smbus_ich9.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
smbus.c smbus: return -1 if nothing found at the given address 2014-05-07 19:14:46 +03:00
versatile_i2c.c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00