]> Git Repo - qemu.git/blobdiff - hw/arm/mainstone.c
hw: Convert from BlockDriverState to BlockBackend, mostly
[qemu.git] / hw / arm / mainstone.c
index a4a25b5c1065e6b52fb0a4f51471f086a6ec3c6d..0da02a67ec34f53a75090c3532e6dd33b0676dcf 100644 (file)
@@ -149,7 +149,7 @@ static void mainstone_common_init(MemoryRegion *address_space_mem,
         if (!pflash_cfi01_register(mainstone_flash_base[i], NULL,
                                    i ? "mainstone.flash1" : "mainstone.flash0",
                                    MAINSTONE_FLASH,
-                                   blk_bs(blk_by_legacy_dinfo(dinfo)),
+                                   blk_by_legacy_dinfo(dinfo),
                                    sector_len, MAINSTONE_FLASH / sector_len,
                                    4, 0, 0, 0, 0, be)) {
             fprintf(stderr, "qemu: Error registering flash memory.\n");
This page took 0.023209 seconds and 4 git commands to generate.