r2d: fix pflash mapping

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
diff --git a/hw/r2d.c b/hw/r2d.c
index 38c4f6a..bc25756 100644
--- a/hw/r2d.c
+++ b/hw/r2d.c
@@ -257,6 +257,7 @@
                   dinfo, NULL);
 
     /* onboard flash memory */
+    dinfo = drive_get(IF_PFLASH, 0, 0);
     pflash_cfi02_register(0x0, qemu_ram_alloc(FLASH_SIZE),
                           dinfo ? dinfo->bdrv : NULL, (16 * 1024),
                           FLASH_SIZE >> 16,