summary refs log tree commit diff stats
path: root/hw/sensor/adm1272.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor/adm1272.c')
-rw-r--r--hw/sensor/adm1272.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/adm1272.c b/hw/sensor/adm1272.c
index 1f7c8abb83..a19557ec9e 100644
--- a/hw/sensor/adm1272.c
+++ b/hw/sensor/adm1272.c
@@ -386,7 +386,7 @@ static int adm1272_write_data(PMBusDevice *pmdev, const uint8_t *buf,
         break;
 
     case ADM1272_MFR_POWER_CYCLE:
-        adm1272_exit_reset((Object *)s);
+        device_cold_reset(DEVICE(s));
         break;
 
     case ADM1272_HYSTERESIS_LOW: