aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/i2c/allwinner-i2c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/i2c/allwinner-i2c.c b/hw/i2c/allwinner-i2c.c
index f24c3ac..9e8efa1 100644
--- a/hw/i2c/allwinner-i2c.c
+++ b/hw/i2c/allwinner-i2c.c
@@ -466,10 +466,8 @@ static void allwinner_i2c_sun6i_init(Object *obj)
static const TypeInfo allwinner_i2c_sun6i_type_info = {
.name = TYPE_AW_I2C_SUN6I,
- .parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(AWI2CState),
+ .parent = TYPE_AW_I2C,
.instance_init = allwinner_i2c_sun6i_init,
- .class_init = allwinner_i2c_class_init,
};
static void allwinner_i2c_register_types(void)