]> git.proxmox.com Git - qemu.git/blobdiff - hw/ds1338.c
i2c: Drop I2C_SLAVE_FROM_QDEV() macro
[qemu.git] / hw / ds1338.c
index 379220638e3e581c401cc72f81deda930b56e1f4..6f70538eb3018303fad1d7a4dd62d24b48c14a77 100644 (file)
@@ -198,7 +198,7 @@ static int ds1338_init(I2CSlave *i2c)
 
 static void ds1338_reset(DeviceState *dev)
 {
-    DS1338State *s = FROM_I2C_SLAVE(DS1338State, I2C_SLAVE_FROM_QDEV(dev));
+    DS1338State *s = FROM_I2C_SLAVE(DS1338State, I2C_SLAVE(dev));
 
     /* The clock is running and synchronized with the host */
     s->offset = 0;