]> git.proxmox.com Git - qemu.git/blobdiff - hw/onenand.c
Remove io_index argument from cpu_register_io_memory()
[qemu.git] / hw / onenand.c
index 9803a0723f7c6bac00fed1bea982628f7c2d6679..7388e7c7924f426e08ff5db488cdb935c96de017 100644 (file)
@@ -631,7 +631,7 @@ void *onenand_init(uint32_t id, int regshift, qemu_irq irq)
     s->secs = size >> 9;
     s->blockwp = qemu_malloc(s->blocks);
     s->density_mask = (id & (1 << 11)) ? (1 << (6 + ((id >> 12) & 7))) : 0;
-    s->iomemtype = cpu_register_io_memory(0, onenand_readfn,
+    s->iomemtype = cpu_register_io_memory(onenand_readfn,
                     onenand_writefn, s);
     if (bdrv_index == -1)
         s->image = memset(qemu_malloc(size + (size >> 5)),