aboutsummaryrefslogtreecommitdiff
path: root/hw/bitbang_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bitbang_i2c.c')
-rw-r--r--hw/bitbang_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bitbang_i2c.c b/hw/bitbang_i2c.c
index c9c1182..44ed7f4 100644
--- a/hw/bitbang_i2c.c
+++ b/hw/bitbang_i2c.c
@@ -237,9 +237,9 @@ static TypeInfo gpio_i2c_info = {
.class_init = gpio_i2c_class_init,
};
-static void bitbang_i2c_register(void)
+static void bitbang_i2c_register_types(void)
{
type_register_static(&gpio_i2c_info);
}
-device_init(bitbang_i2c_register)
+type_init(bitbang_i2c_register_types)