diff options
Diffstat (limited to 'hw/i2c/core.c')
-rw-r--r-- | hw/i2c/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/i2c/core.c b/hw/i2c/core.c index 2c1234cdff..59068f157e 100644 --- a/hw/i2c/core.c +++ b/hw/i2c/core.c @@ -41,7 +41,7 @@ static const TypeInfo i2c_bus_info = { .instance_size = sizeof(I2CBus), }; -static void i2c_bus_pre_save(void *opaque) +static int i2c_bus_pre_save(void *opaque) { I2CBus *bus = opaque; @@ -53,6 +53,8 @@ static void i2c_bus_pre_save(void *opaque) bus->saved_address = I2C_BROADCAST; } } + + return 0; } static const VMStateDescription vmstate_i2c_bus = { |