summary refs log tree commit diff stats
path: root/hw/sensor/emc141x.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor/emc141x.c')
-rw-r--r--hw/sensor/emc141x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/emc141x.c b/hw/sensor/emc141x.c
index 95079558e8..aeccd2a3c9 100644
--- a/hw/sensor/emc141x.c
+++ b/hw/sensor/emc141x.c
@@ -270,7 +270,7 @@ static void emc141x_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
     I2CSlaveClass *k = I2C_SLAVE_CLASS(klass);
 
-    dc->reset = emc141x_reset;
+    device_class_set_legacy_reset(dc, emc141x_reset);
     k->event = emc141x_event;
     k->recv = emc141x_rx;
     k->send = emc141x_tx;