hw/i2c: Add a NULL check for i2c slave init callbacks
commit9e41bade85ef338afd983c109368d1bbbe931f80
authorAlastair D'Silva <alastair@d-silva.org>
Tue, 27 Dec 2016 14:59:29 +0000 (27 14:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Dec 2016 14:59:29 +0000 (27 14:59 +0000)
tree2356fb69bf69a56f9b21f05945dc368f7c137284
parent8e953a658fa13b05bea67899a91d8b65f2b89f11
hw/i2c: Add a NULL check for i2c slave init callbacks

Add a NULL check for i2c slave init callbacks, so that we no longer
need to implement empty init functions.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Message-id: 20161202054617.6749-4-alastair@au1.ibm.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: squashed in later tweak from Alistair to if() phrasing]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/pxa2xx.c
hw/arm/tosa.c
hw/arm/z2.c
hw/i2c/core.c
hw/timer/ds1338.c