diff options
Diffstat (limited to 'hw/nand.c')
-rw-r--r-- | hw/nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ static const struct { static void nand_reset(DeviceState *dev) { - NANDFlashState *s = FROM_SYSBUS(NANDFlashState, sysbus_from_qdev(dev)); + NANDFlashState *s = FROM_SYSBUS(NANDFlashState, SYS_BUS_DEVICE(dev)); s->cmd = NAND_CMD_READ0; s->addr = 0; s->addrlen = 0; |