Skip to content
Commit 9e41bade authored by Alastair D'Silva's avatar Alastair D'Silva Committed by Peter Maydell
Browse files

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: default avatarAlastair D'Silva <alastair@d-silva.org>
Message-id: 20161202054617.6749-4-alastair@au1.ibm.com
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
[PMM: squashed in later tweak from Alistair to if() phrasing]
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 8e953a65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment