aboutsummaryrefslogtreecommitdiff
path: root/hw/sensor
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor')
-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 1f7c8ab..a19557e 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: