diff options
Diffstat (limited to 'hw/tmp105.c')
-rw-r--r-- | hw/tmp105.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c index c9756c5e96..0113f8d3f9 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -226,7 +226,7 @@ static void tmp105_reset(i2c_slave *i2c) tmp105_interrupt_update(s); } -static void tmp105_init(i2c_slave *i2c) +static int tmp105_init(i2c_slave *i2c) { TMP105State *s = FROM_I2C_SLAVE(TMP105State, i2c); @@ -235,6 +235,7 @@ static void tmp105_init(i2c_slave *i2c) tmp105_reset(&s->i2c); register_savevm("TMP105", -1, 0, tmp105_save, tmp105_load, s); + return 0; } static I2CSlaveInfo tmp105_info = { |