aboutsummaryrefslogtreecommitdiff
path: root/hw/wm8750.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/wm8750.c')
-rw-r--r--hw/wm8750.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/wm8750.c b/hw/wm8750.c
index 9f5bd46de4..0c0dbba58b 100644
--- a/hw/wm8750.c
+++ b/hw/wm8750.c
@@ -726,6 +726,8 @@ void wm8750_set_bclk_in(void *opaque, int new_hz)
}
static I2CSlaveInfo wm8750_info = {
+ .qdev.name = "wm8750",
+ .qdev.size = sizeof(WM8750State),
.init = wm8750_init,
.event = wm8750_event,
.recv = wm8750_rx,
@@ -734,7 +736,7 @@ static I2CSlaveInfo wm8750_info = {
static void wm8750_register_devices(void)
{
- i2c_register_slave("wm8750", sizeof(WM8750State), &wm8750_info);
+ i2c_register_slave(&wm8750_info);
}
device_init(wm8750_register_devices)